aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Photos.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-03-18 13:29:08 +0100
committerMario Vavti <mario@mariovavti.com>2019-03-18 13:29:08 +0100
commit2ec3e4a912777501f232d6255fe8ba5d0c147eee (patch)
tree3eda11cce28a15793798edf251e8132d1a4b6d67 /Zotlabs/Module/Photos.php
parenta086745ec021add5638a0527d4e8e14835591e93 (diff)
downloadvolse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.tar.gz
volse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.tar.bz2
volse-hubzilla-2ec3e4a912777501f232d6255fe8ba5d0c147eee.zip
use urlencode
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r--Zotlabs/Module/Photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php
index 161141c3b..3a6d77f00 100644
--- a/Zotlabs/Module/Photos.php
+++ b/Zotlabs/Module/Photos.php
@@ -848,7 +848,7 @@ class Photos extends \Zotlabs\Web\Controller {
killme();
}
else {
- $o .= '<script>var page_query = "' . escape_tags($_GET['q']) . '"; var extra_args = "' . extra_query_args() . '";</script>';
+ $o .= "<script> var page_query = '" . escape_tags(urlencode($_GET['q'])) . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$tpl = get_markup_template('photo_album.tpl');
$o .= replace_macros($tpl, array(
'$photos' => $photos,
@@ -1396,7 +1396,7 @@ class Photos extends \Zotlabs\Web\Controller {
killme();
}
else {
- $o .= '<script>var page_query = "' . escape_tags($_GET['q']) . '"; var extra_args = "' . extra_query_args() . '";</script>';
+ $o .= "<script> var page_query = '" . escape_tags(urlencode($_GET['q'])) . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$tpl = get_markup_template('photos_recent.tpl');
$o .= replace_macros($tpl, array(
'$title' => t('Recent Photos'),