diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-03-18 13:29:08 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-03-18 13:29:08 +0100 |
commit | 2ec3e4a912777501f232d6255fe8ba5d0c147eee (patch) | |
tree | 3eda11cce28a15793798edf251e8132d1a4b6d67 /Zotlabs/Module/Directory.php | |
parent | a086745ec021add5638a0527d4e8e14835591e93 (diff) | |
download | volse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.tar.gz volse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.tar.bz2 volse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.zip |
use urlencode
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r-- | Zotlabs/Module/Directory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index 04bcb7f0a..5448a4816 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -399,7 +399,7 @@ class Directory extends \Zotlabs\Web\Controller { $dirtitle = (($globaldir) ? t('Global Directory') : t('Local Directory')); - $o .= '<script>var page_query = "' . escape_tags($_GET['q']) . '"; var extra_args = "' . extra_query_args() . '"; divmore_height = ' . intval($maxheight) . '; </script>'; + $o .= "<script> var page_query = '" . escape_tags(urlencode($_GET['q'])) . "'; var extra_args = '" . extra_query_args() . "' ; divmore_height = " . intval($maxheight) . "; </script>"; $o .= replace_macros($tpl, array( '$search' => $search, '$desc' => t('Find'), |