diff options
author | Andrew Dolgov <[email protected]> | 2006-09-21 04:55:02 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-09-21 04:55:02 +0100 |
commit | a262b161f99cdc5cadb6571941c324f53bb3543e (patch) | |
tree | 593e60f98267b862a5618d27aafc6d2e246f573b /functions.php | |
parent | 8bde41c35f8677a8680a1b183c8c780fd793dc89 (diff) |
disable html objects in article content, breaks layout
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 11 |
1 files changed, 11 insertions, 0 deletions
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', "</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)); + } + ?> |