mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
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,
|
||||
'$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) {
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue