Skip to content

Commit

Permalink
using sanitize more heavily.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent 0efc4a9 commit 90e6226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owa_httpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class owa_http {
*
* @var array
*/
var $anchor_info;
var $anchor_info = [];

var $http;

Expand Down Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 90e6226

Please sign in to comment.