luci-app-ssr-plus: fix bug that user can't import trojan url (#3767)

This commit is contained in:
Max Zhao 2020-03-13 12:21:10 +08:00 committed by GitHub
parent c9fe160157
commit abdf32b331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@
var others = serverPart[1].split('?');
var port = others[0]
var queryParam = {}
if(others.length > 0) {
if(others.length > 1) {
var queryParams = others[1]
var queryArray = queryParams.split('&')
for (i = 0; i < queryArray.length; i++) {