summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TinyMCE/TinyMCEPlugin.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php
index c0fd8506e..f8d85c1ba 100644
--- a/plugins/TinyMCE/TinyMCEPlugin.php
+++ b/plugins/TinyMCE/TinyMCEPlugin.php
@@ -85,7 +85,7 @@ class TinyMCEPlugin extends Plugin
return true;
}
- $raw = $args['status_textarea'];
+ $raw = $this->_scrub($args['status_textarea']);
require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
@@ -127,5 +127,15 @@ END_OF_SCRIPT;
return $scr;
}
+
+ function _scrub($txt)
+ {
+ $strip = get_magic_quotes_gpc();
+ if ($strip) {
+ return stripslashes($txt);
+ } else {
+ return $txt;
+ }
+ }
}