bugfix: if search has no other parameters url building ailed

This commit is contained in:
6543 2019-08-27 18:20:22 +02:00
parent e8d5f33db2
commit 9444d57e5d
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ window.sortt=function(normsort,revsort,isdefault){
if ( isdefault ) url_sort = normsort;
} else {
url_sort=window.location.search.substr(window.location.search.indexOf("sort=")+5);
url_sort=url_sort.substr(0,url_sort.indexOf("&"));
if (url_sort.indexOf("&") >= 0) url_sort=url_sort.substr(0,url_sort.indexOf("&"));
}

// generate new URL