From 01908cfdcac261e9f87f4532eed6b839a2b38e76 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 24 Jun 2007 20:28:53 +0000 Subject: [PATCH] gah --- submit-event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit-event.php b/submit-event.php index 858f62f0f..f5292c838 100644 --- a/submit-event.php +++ b/submit-event.php @@ -50,7 +50,7 @@ if ($process) { } $_POST['ldesc'] = trim(strip_tags($_POST['ldesc'], '

')); - $_POST['ldesc'] = preg_replace("/(style|on\\w+?)\s*=\s*(\"|').+?\\2/i", "", $_POST['ldesc']); + $_POST['ldesc'] = preg_replace("/(style|on\\w+?)\s*=[^>]*/i", "", $_POST['ldesc']); if (!$_POST['ldesc']) { $errors[] = "You must supply a long description of the event."; }