cvs: phpweb / mailing-lists.php
| From: | jim winstead | Date: | Fri, 30 Aug 2002 18:21:56 +0000 |
| Subject: | cvs: phpweb / mailing-lists.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-12187@lists.php.net to get a copy of this message | ||
jimw Fri Aug 30 14:21:56 2002 EDT
Modified files:
/phpweb mailing-lists.php
Log:
validate address
Index: phpweb/mailing-lists.php
diff -u phpweb/mailing-lists.php:1.19 phpweb/mailing-lists.php:1.20
--- phpweb/mailing-lists.php:1.19 Fri Aug 30 14:18:18 2002
+++ phpweb/mailing-lists.php Fri Aug 30 14:21:55 2002
@@ -1,5 +1,6 @@
<?php
require_once 'prepend.inc';
+require_once 'email-validation.inc';
commonHeader("Mailing Lists");
?>
@@ -7,8 +8,8 @@
<?php
if (isset($maillist)) {
# should really grab some email validating routine and use it here.
- if (empty($email) || $email == 'user@example.com' || $email ==
'fake@from.net') {
- echo "You forgot to specify an email address to be added to the list. ";
+ if (empty($email) || $email == 'user@example.com' || $email == 'fake@from.net'
|| !is_emailable_address($email)) {
+ echo "You forgot to specify an email address to be added to the list, or specified an
invalid address. ";
echo "Go back and try again.";
} else {
$request = strtolower($action);