Issue 14295: Store the return url as hex string
This commit is contained in:
parent
33e26b966e
commit
c42cff691a
4 changed files with 8 additions and 4 deletions
|
|
@ -48,7 +48,11 @@ class Saved extends BaseModule
|
|||
$action = $this->args->get(2, 'none');
|
||||
$search = trim(rawurldecode($_GET['term'] ?? ''));
|
||||
|
||||
$return_url = $_GET['return_url'] ?? Search::getSearchPath($search);
|
||||
if (!empty($_GET['return_url'])) {
|
||||
$return_url = hex2bin($_GET['return_url']);
|
||||
} else {
|
||||
$return_url = Search::getSearchPath($search);
|
||||
}
|
||||
|
||||
if (DI::userSession()->getLocalUserId() && $search) {
|
||||
switch ($action) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue