From 4a61e76c6dc9cc908a8237794d89fa6984f1b686 Mon Sep 17 00:00:00 2001 From: Mike Newman Date: Sun, 1 Sep 2002 13:18:38 +0000 Subject: [PATCH] Commit Vincent's form fix. --- ChangeLog | 4 ++++ membership-form.php | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index b063641..b227d17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-09-01 Vincent Untz + + * membership-form.php: made it strip the slashes before the quotes. + 2002-08-31 Mike Newman * membership-policy.html: Fixed to reflect current renewal process. diff --git a/membership-form.php b/membership-form.php index 6c6aba0..8458568 100644 --- a/membership-form.php +++ b/membership-form.php @@ -49,6 +49,14 @@ $errors = array(); if ($submit) { + /* remove the slashes */ + $name = stripslashes($name); + $email = stripslashes($email); + $summary = stripslashes($summary); + $details = stripslashes($details); + $contacts = stripslashes($contacts); + $comments = stripslashes($comments); + if (!$name || trim($name) == "") { $bad_elements[] = "name"; $errors[] = "Please enter your name.";