summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-11 20:11:31 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-11 20:11:31 +0200
commite320bc8ae23d3fab537c620d980a2aa0cb8919a9 (patch)
treefc6fb37d2a4a1b1ce07f33650fd5dbda42b9b6ec /system/libraries
parentab504b85c56cf10b6c840ae85080d4adc117a81f (diff)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Typography.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index bc3baeb5d..84e6a046f 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -74,8 +74,7 @@ class CI_Typography {
*/
if ($this->allow_js_event_handlers == FALSE)
{
- $event_handlers = array('[^a-z_\-]on\w*','xmlns');
- $str = preg_replace("#<([^><]+?)(".implode('|', $event_handlers).")(\s*=\s*[^><]*)([><]*)#i", "<\\1\\4", $str);
+ $str = preg_replace("#<([^><]+?)([^a-z_\-]on\w*|xmlns)(\s*=\s*[^><]*)([><]*)#i", "<\\1\\4", $str);
}
/*