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 CN_SZTL
parent 9644372e88
commit d34d69ef86
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

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++) {