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)); } }