cvs: php-master-web /manage users.php
| From: | Wez Furlong | Date: | Sun, 10 Jun 2007 14:12:18 +0000 |
| Subject: | cvs: php-master-web /manage users.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35651@lists.php.net to get a copy of this message | ||
wez Sun Jun 10 14:12:18 2007 UTC
Modified files:
/php-master-web/manage users.php
Log:
People are entering bogus addresses because they don't want to use their
php.net email anymore, and all they get is spam.
Ideally, we wouldn't let any spam through in the first place, but the reality
is that this is difficult.
It's not good for @php.net mail reputation to be spewing spam out to bogus
addresses, so let's allow people to set their email address to be blank to
indicate that they wish to be inactive.
If you have a blank email address entered here, the @php.net MX will reject all
mail for you during reception time.
http://cvs.php.net/viewvc.cgi/php-master-web/manage/users.php?r1=1.42&r2=1.43&diff_format=u
Index: php-master-web/manage/users.php
diff -u php-master-web/manage/users.php:1.42 php-master-web/manage/users.php:1.43
--- php-master-web/manage/users.php:1.42 Fri Jun 1 14:33:39 2007
+++ php-master-web/manage/users.php Sun Jun 10 14:12:18 2007
@@ -182,7 +182,9 @@
</tr>
<tr>
<th align="right">Email:</th>
- <td><input type="text" name="in[email]" value="<?php echo
htmlspecialchars($row[email]);?>" size="40" maxlength="255"
/></td>
+ <td><input type="text" name="in[email]" value="<?php echo
htmlspecialchars($row[email]);?>" size="40" maxlength="255"
/><br/>
+ Leave this field blank to disable email for this user.
+ </td>
</tr>
<tr>
<td colspan="2">Leave password fields blank to leave password
unchanged.</td>
@@ -359,7 +361,7 @@
foot();
function invalid_input($in) {
- if (isset($in[email]) && !is_emailable_address($in[email])) {
+ if (isset($in[email]) && strlen($in[email]) && !is_emailable_address($in[email]))
{
return "'".clean($in[email])."' does not look like a valid email
address";
}
if ($in[username] && !preg_match("/^[-\w]+\$/",$in[username])) {