* Fix bug #42989.
This commit is contained in:
@@ -33,7 +33,7 @@ function getSearchUrl(searchType, searchValue, callback)
|
||||
|
||||
let searchUrl = $.createLink('search', 'index');
|
||||
searchUrl += (searchUrl.indexOf('?') >= 0 ? '&' : '?') + 'words=' + searchValue + '&type=all';
|
||||
if(!searchType || searchType == 'all' || /[^0-9]/.test(searchValue)) return callback(searchUrl);
|
||||
if(!searchType || searchType == 'all' || searchType == 'search' || /[^0-9]/.test(searchValue)) return callback(searchUrl);
|
||||
|
||||
const types = searchType.split('-');
|
||||
const searchModule = types[0];
|
||||
|
||||
Reference in New Issue
Block a user