1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:45:56 +00:00

parser: clean() attribute values by default (except content)

This commit is contained in:
Andrew Dolgov
2018-12-26 10:16:11 +03:00
parent 949bfa3457
commit 55ef85adc0
4 changed files with 55 additions and 55 deletions

View File

@@ -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;