From a262b161f99cdc5cadb6571941c324f53bb3543e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Sep 2006 04:55:02 +0100 Subject: disable html objects in article content, breaks layout --- functions.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 600a776c6..e5f06da37 100644 --- a/functions.php +++ b/functions.php @@ -2449,6 +2449,13 @@ $res = preg_replace('/<\/script>/i', "

", $res); + $res = preg_replace('/.*?<\/object>/i', + "

(Disabled html object + - flash or other embedded content)

", $str); + + $res = preg_replace('/<\/object>/i', + "

", $res); + return $res; } @@ -2637,4 +2644,8 @@ } } + function escape_for_form($s) { + return htmlspecialchars(db_unescape_string($s)); + } + ?> -- cgit v1.2.3