summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
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));
+ }
+
?>