]> git.mxchange.org Git - friendica.git/commitdiff
xmlify enclosure items
authorFriendika <info@friendika.com>
Thu, 7 Apr 2011 03:36:24 +0000 (20:36 -0700)
committerFriendika <info@friendika.com>
Thu, 7 Apr 2011 03:36:24 +0000 (20:36 -0700)
include/items.php

index 9eaee457363f992fce4c90bffcb518112d954c55..c617f13cbd0f1777e1cd34ab04abad74855afe72 100644 (file)
@@ -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";
                        }
                }