aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-03-18 13:19:24 +0100
committerMario Vavti <mario@mariovavti.com>2019-03-18 13:19:24 +0100
commita086745ec021add5638a0527d4e8e14835591e93 (patch)
tree092c099bf6c9f150bc88f966a824dd6b64cf694e /Zotlabs/Module/Directory.php
parent51156d058232969d55032f045859e46bb3a09162 (diff)
downloadvolse-hubzilla-a086745ec021add5638a0527d4e8e14835591e93.tar.gz
volse-hubzilla-a086745ec021add5638a0527d4e8e14835591e93.tar.bz2
volse-hubzilla-a086745ec021add5638a0527d4e8e14835591e93.zip
ENT_COMPAT will only take care of double-quotes. Use double-quotes here to prevent XSS
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r--Zotlabs/Module/Directory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index c29fa8326..04bcb7f0a 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($_GET['q']) . '"; var extra_args = "' . extra_query_args() . '"; divmore_height = ' . intval($maxheight) . '; </script>';
$o .= replace_macros($tpl, array(
'$search' => $search,
'$desc' => t('Find'),