Commit Vincent's form fix.

This commit is contained in:
Mike Newman 2002-09-01 13:18:38 +00:00
parent 1fde313cfa
commit 4a61e76c6d
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-09-01 Vincent Untz <vincent@vuntz.net>
* membership-form.php: made it strip the slashes before the quotes.
2002-08-31 Mike Newman <mike@gtnorthern.demon.co.uk>
* membership-policy.html: Fixed to reflect current renewal process.

View file

@ -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.";