diff options
author | Andrew Dolgov <[email protected]> | 2018-12-26 10:16:11 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-26 10:16:11 +0300 |
commit | 55ef85adc01474f502cf195d8fb35e2655ccd20a (patch) | |
tree | 2822290571fa49adffb88a7f1a839fcf84bd0597 /classes/feedparser.php | |
parent | 949bfa3457f549b681feb33ae3636192e3cc66cf (diff) |
parser: clean() attribute values by default (except content)
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r-- | classes/feedparser.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php index a5e406149..dc67e204e 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -246,11 +246,11 @@ class FeedParser { } function get_link() { - return $this->link; + return clean($this->link); } function get_title() { - return $this->title; + return clean($this->title); } function get_items() { @@ -266,7 +266,7 @@ class FeedParser { foreach ($links as $link) { if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) { - array_push($rv, trim($link->getAttribute('href'))); + array_push($rv, clean(trim($link->getAttribute('href')))); } } break; @@ -275,7 +275,7 @@ class FeedParser { foreach ($links as $link) { if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) { - array_push($rv, trim($link->getAttribute('href'))); + array_push($rv, clean(trim($link->getAttribute('href')))); } } break; |