From 90e62262802d9bc7b630b8ebb27f0ebf718377c6 Mon Sep 17 00:00:00 2001 From: padams Date: Mon, 24 Jan 2022 19:45:35 +0000 Subject: [PATCH] using sanitize more heavily. --- owa_httpRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owa_httpRequest.php b/owa_httpRequest.php index e39c8cb6..a9bab531 100644 --- a/owa_httpRequest.php +++ b/owa_httpRequest.php @@ -70,7 +70,7 @@ class owa_http { * * @var array */ - var $anchor_info; + var $anchor_info = []; var $http; @@ -107,7 +107,7 @@ function extract_anchor($link) { // $match[3] = link text if ($match[3] && $link === $match[3] ) { - $this->anchor_info = array('anchor_tag' => match[0], 'anchor_text' => owa_lib::inputFilter($match[3])); + $this->anchor_info = array('anchor_tag' => match[0], 'anchor_text' => owa_lib::inputFilter( owa_sanitize::stripAllTags( $match[3] ) )); owa_coreAPI::debug('Anchor info: '.print_r($this->anchor_info, true)); } }