This commit is contained in:
kristuff 2020-06-28 21:42:34 +02:00
commit 368b7b4d75
3 changed files with 6 additions and 7 deletions

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.1 * @version 0.9.2
* @copyright 2020 Kristuff * @copyright 2020 Kristuff
*/ */

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.1 * @version 0.9.2
* @copyright 2020 Kristuff * @copyright 2020 Kristuff
*/ */
@ -361,11 +361,10 @@ class ApiManager extends ApiDefintion
// If we're reporting spam, further munge any email addresses in the report // If we're reporting spam, further munge any email addresses in the report
$emailPattern = "/[^@\s]*@[^@\s]*\.[^@\s]*/"; $emailPattern = "/[^@\s]*@[^@\s]*\.[^@\s]*/";
$emailRemplacement = "[-]"; $message = preg_replace($emailPattern, "[-]", $message);
$message = preg_replace($emailPattern, $emailRemplacement, $message);
// Make sure message is less 1024 chars // Make sure message is less 1024 chars
return substr($message, 0,1024); return substr($message, 0, 1024);
} }
/** /**

View file

@ -14,7 +14,7 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
* *
* @version 0.9.1 * @version 0.9.2
* @copyright 2020 Kristuff * @copyright 2020 Kristuff
*/ */