Fix XSS when searching skinlib

This commit is contained in:
printempw 2017-07-31 12:51:00 +08:00
parent 2ea4920851
commit f29ab3042d

View File

@ -212,7 +212,7 @@ function updateBreadCrumb() {
$('#sort-indicator').html(trans('skinlib.sort.' + $.skinlib.sort));
if ($.skinlib.keyword != '') {
$('#search-indicator').html(trans('general.searchResult', {
$('#search-indicator').text(trans('general.searchResult', {
keyword: decodeURI($.skinlib.keyword)
}));