From 18e2a3efd06b8ffe3b0d27707c6cf650e4ae56a3 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 31 Dec 2006 15:16:09 +0000 Subject: Event handler removing again. Closes #1484200 --- program/steps/mail/func.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index b8c391aae..83f170d16 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1214,8 +1214,8 @@ function rcmail_mod_html_body($body, $container_id) while ($body != $prev_body) { $prev_body = $body; - $body = preg_replace('/(<[^!][^>]*?\s)(on[^=]+)(=[^>]*?>)/im', '$1__removed=$3', $body); - $body = preg_replace('/(<[^!][^>]*?\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body); + $body = preg_replace('/(<[^!][^>]*\s)(on[^=>]+)=([^>]+>)/im', '$1__removed=$3', $body); + $body = preg_replace('/(<[^!][^>]*\shref=["\']?)(javascript:)([^>]*?>)/im', '$1null:$3', $body); } // resolve -- cgit v1.2.3