use urlencode

(cherry picked from commit 2ec3e4a912)
This commit is contained in:
Mario Vavti
2019-03-18 12:29:08 +00:00
committed by Mario
parent 43753ec113
commit 8893d9edc4
4 changed files with 5 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ class Viewconnections 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("viewcontact_template.tpl");
$o .= replace_macros($tpl, array(
'$title' => t('View Connections'),