diff options
| author | 2015-03-25 03:31:11 -0400 | |
|---|---|---|
| committer | 2015-03-25 03:31:11 -0400 | |
| commit | 2a0d04dd0ec7f7a453cf15ef7846bca662335050 (patch) | |
| tree | 779b9b48bade05892df56f4db7f3f6f6593ba7c4 /lib | |
| parent | 5376c37907257ca3515b257413740721bd030254 (diff) | |
| parent | 0e08b5ba56b2117e0f3d9bea6ae725295e8700d5 (diff) | |
Merge pull request #813 from Alkarex/SimplePieDecodeMaybeHTML
SimplePie: decode special chars for MAYBE_HTML
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/SimplePie/SimplePie/Sanitize.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/SimplePie/SimplePie/Sanitize.php b/lib/SimplePie/SimplePie/Sanitize.php index 168a5e2e8..e7c9f925f 100644 --- a/lib/SimplePie/SimplePie/Sanitize.php +++ b/lib/SimplePie/SimplePie/Sanitize.php @@ -249,6 +249,7 @@ class SimplePie_Sanitize { if ($type & SIMPLEPIE_CONSTRUCT_MAYBE_HTML) { + $data = htmlspecialchars_decode($data, ENT_QUOTES); //FreshRSS if (preg_match('/(&(#(x[0-9a-fA-F]+|[0-9]+)|[a-zA-Z0-9]+)|<\/[A-Za-z][^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3E]*' . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . '>)/', $data)) { $type |= SIMPLEPIE_CONSTRUCT_HTML; |
