summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 2e65f7a35..133a8ccf9 100644
--- a/functions.php
+++ b/functions.php
@@ -530,6 +530,13 @@
}
+ # sanitize content
+ $entry_content = preg_replace('/<script.*?>/i',
+ "<p class=\"scriptWarn\">", $entry_content);
+
+ $entry_content = preg_replace('/<\/script>/i',
+ "</p>", $entry_content);
+
db_query($link, "BEGIN");
if (db_num_rows($result) == 0) {