Correctly URL encode return URLS for saved search
This commit is contained in:
parent
74bf3a4dc8
commit
230a97ccdd
2 changed files with 2 additions and 2 deletions
|
@ -912,7 +912,7 @@ class HTML
|
||||||
'$save_label' => $save_label,
|
'$save_label' => $save_label,
|
||||||
'$search_hint' => L10n::t('@name, !forum, #tags, content'),
|
'$search_hint' => L10n::t('@name, !forum, #tags, content'),
|
||||||
'$mode' => $mode,
|
'$mode' => $mode,
|
||||||
'$return_url' => urlencode('search?q=' . $s),
|
'$return_url' => urlencode('search?q=' . urlencode($s)),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!$aside) {
|
if (!$aside) {
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Index extends BaseSearchModule
|
||||||
}
|
}
|
||||||
|
|
||||||
if (local_user()) {
|
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');
|
Nav::setSelected('search');
|
||||||
|
|
Loading…
Reference in a new issue