com web/bugs: - Use spam protector when changing mail too: include/functions.php

From: Date: Fri, 25 May 2012 00:19:51 +0000
Subject: com web/bugs: - Use spam protector when changing mail too: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13596@lists.php.net to get a copy of this message
Commit: 96b01d119e7b5d2d0a51c50f8c6e8ff377b915d9 Author: Felipe Pena <felipensp@gmail.com> Thu, 24 May 2012 21:19:51 -0300 Parents: 38dd09dae05d6a310d47d81584ee9e32ff5f2b82 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=96b01d119e7b5d2d0a51c50f8c6e8ff377b915d9 Log: - Use spam protector when changing mail too Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index d31b522..6272262 100644 --- a/include/functions.php +++ b/include/functions.php @@ -844,7 +844,7 @@ function bug_diff($bug, $in) $changed = array(); if (!empty($in['email']) && (trim($in['email']) != trim($bug['email']))) { - $changed['reported_by']['from'] = $bug['email']; + $changed['reported_by']['from'] = spam_protect($bug['email'], 'text'); $changed['reported_by']['to'] = spam_protect(txfield('email', $bug, $in), 'text'); }

« previous php.webmaster (#13596) next »