1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
This commit is contained in:
Rasmus Lerdorf
2007-06-24 20:28:53 +00:00
parent 70ae5c95d4
commit 01908cfdca

View File

@@ -50,7 +50,7 @@ if ($process) {
}
$_POST['ldesc'] = trim(strip_tags($_POST['ldesc'], '<a><i><b><br /><p>'));
$_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.";
}