diff options
author | Friendika <info@friendika.com> | 2011-04-06 20:36:24 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-06 20:36:24 -0700 |
commit | c8d827a67118e693f4d69662b99163e08976479f (patch) | |
tree | aa0c7cfad25bd7b7728691dd538878aefc8bd37d /include | |
parent | 109c25a1bd04ba27f19ecad23e174daef0fc691b (diff) | |
download | volse-hubzilla-c8d827a67118e693f4d69662b99163e08976479f.tar.gz volse-hubzilla-c8d827a67118e693f4d69662b99163e08976479f.tar.bz2 volse-hubzilla-c8d827a67118e693f4d69662b99163e08976479f.zip |
xmlify enclosure items
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 9eaee4573..c617f13cb 100644 --- a/include/items.php +++ b/include/items.php @@ -1591,11 +1591,11 @@ function item_getfeedattach($item) { $matches = false; $cnt = preg_match('|\<a href=\"(.+?)\" size=\"(.+?)\" type=\"(.+?)\" >(.+?)</a>|',$r,$matches); if($cnt) { - $ret .= '<link rel="enclosure" href="' . $matches[1] . '" type="' . $matches[3] . '" '; + $ret .= '<link rel="enclosure" href="' . xmlify($matches[1]) . '" type="' . xmlify($matches[3]) . '" '; if(intval($matches[2])) $ret .= 'size="' . intval($matches[2]) . '" '; if($matches[4] !== ' ') - $ret .= 'title="' . $matches[4] . '" '; + $ret .= 'title="' . xmlify($matches[4]) . '" '; $ret .= ' />' . "\r\n"; } } |