aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-15 19:00:02 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-15 19:00:02 +0100
commit3744df6866857d6bcdac76e916586411f1d605ac (patch)
tree9f841be1e8261603674399fd4bc38257ec96b101
parent190e724aee234eb4ef0e476f20e89a9aaefce778 (diff)
Url absolues pour les balises video, audio, source, track
Corrige https://github.com/marienfressinaud/FreshRSS/issues/267
-rw-r--r--app/models/Feed.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index 75dff01b7..407614f9f 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -212,6 +212,24 @@ class Feed extends Model {
'onload', 'onunload', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup',
'onmouseover', 'onmousemove', 'onmouseout', 'onfocus', 'onblur',
'onkeypress', 'onkeydown', 'onkeyup', 'onselect', 'onchange')));
+ $feed->set_url_replacements(array(
+ 'a' => 'href',
+ 'area' => 'href',
+ 'audio' => 'src',
+ 'blockquote' => 'cite',
+ 'del' => 'cite',
+ 'form' => 'action',
+ 'img' => array(
+ 'longdesc',
+ 'src'
+ ),
+ 'input' => 'src',
+ 'ins' => 'cite',
+ 'q' => 'cite',
+ 'source' => 'src',
+ 'track' => 'src',
+ 'video' => 'src',
+ ));
$feed->init ();
if ($feed->error ()) {