escape query string

(cherry picked from commit b3928f3d2a)
This commit is contained in:
Mario Vavti
2018-06-07 22:45:07 +02:00
committed by Mario
parent 38b230a128
commit 19e509d997
5 changed files with 7 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ class Viewconnections extends \Zotlabs\Web\Controller {
killme();
}
else {
$o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$o .= "<script> var page_query = '" . escape_tags($_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'),