1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:15:57 +00:00

disable html objects in article content, breaks layout

This commit is contained in:
Andrew Dolgov
2006-09-21 04:55:02 +01:00
parent 8bde41c35f
commit a262b161f9
3 changed files with 21 additions and 2 deletions

View File

@@ -2449,6 +2449,13 @@
$res = preg_replace('/<\/script>/i',
"</p>", $res);
$res = preg_replace('/<object.*?>.*?<\/object>/i',
"<p class=\"objectWarn\">(Disabled html object
- flash or other embedded content)</p>", $str);
$res = preg_replace('/<\/object>/i',
"</p>", $res);
return $res;
}
@@ -2637,4 +2644,8 @@
}
}
function escape_for_form($s) {
return htmlspecialchars(db_unescape_string($s));
}
?>