X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FItem.php;h=30c29e1518b18cea736de93613f6a9c9657abd3a;hb=b0d8a2fcd087c2a7c34460ced3c7334eccaa1c0a;hp=e12f6b6eedfc0b014512690be1bc2261ee0e804f;hpb=b5a97c1abe5246f45911e63e3412d60c90603578;p=friendica.git diff --git a/src/Model/Item.php b/src/Model/Item.php index e12f6b6eed..30c29e1518 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1150,7 +1150,7 @@ class Item extends BaseObject private static function guid($item, $notify) { if (!empty($item['guid'])) { - return Strings::removeTags(trim($item['guid'])); + return Strings::escapeTags(trim($item['guid'])); } if ($notify) { @@ -1265,7 +1265,7 @@ class Item extends BaseObject } $item['guid'] = self::guid($item, $notify); - $item['uri'] = Strings::removeTags(trim(defaults($item, 'uri', self::newURI($item['uid'], $item['guid'])))); + $item['uri'] = Strings::escapeTags(trim(defaults($item, 'uri', self::newURI($item['uid'], $item['guid'])))); // Store URI data $item['uri-id'] = ItemURI::insert(['uri' => $item['uri'], 'guid' => $item['guid']]); @@ -3447,7 +3447,7 @@ class Item extends BaseObject $filesubtype = 'unkn'; } - $title = Strings::escapeTags(trim(!empty($mtch[4]) ? $mtch[4] : $mtch[1])); + $title = Strings::escapeHtml(trim(!empty($mtch[4]) ? $mtch[4] : $mtch[1])); $title .= ' ' . $mtch[2] . ' ' . L10n::t('bytes'); $icon = '
';