Correctly URL encode return URLS for saved search

This commit is contained in:
Hypolite Petovan 2019-10-13 08:39:55 -04:00
parent 74bf3a4dc8
commit 230a97ccdd
2 changed files with 2 additions and 2 deletions

View file

@ -912,7 +912,7 @@ class HTML
'$save_label' => $save_label,
'$search_hint' => L10n::t('@name, !forum, #tags, content'),
'$mode' => $mode,
'$return_url' => urlencode('search?q=' . $s),
'$return_url' => urlencode('search?q=' . urlencode($s)),
];
if (!$aside) {

View file

@ -63,7 +63,7 @@ class Index extends BaseSearchModule
}
if (local_user()) {
self::getApp()->page['aside'] .= Widget\SavedSearches::getHTML('search?q=' . $search, $search);
self::getApp()->page['aside'] .= Widget\SavedSearches::getHTML('search?q=' . urlencode($search), $search);
}
Nav::setSelected('search');