From 368b7b4d75b7623ff74b3bb235a543de4316c1d6 Mon Sep 17 00:00:00 2001 From: kristuff Date: Sun, 28 Jun 2020 21:42:34 +0200 Subject: [PATCH] v0.9.2 --- lib/ApiDefintion.php | 2 +- lib/ApiManager.php | 9 ++++----- lib/InvalidPermissionException.php | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/ApiDefintion.php b/lib/ApiDefintion.php index 4a22af3..30f2944 100644 --- a/lib/ApiDefintion.php +++ b/lib/ApiDefintion.php @@ -14,7 +14,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @version 0.9.1 + * @version 0.9.2 * @copyright 2020 Kristuff */ diff --git a/lib/ApiManager.php b/lib/ApiManager.php index 26a84dd..f033d1f 100644 --- a/lib/ApiManager.php +++ b/lib/ApiManager.php @@ -14,7 +14,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @version 0.9.1 + * @version 0.9.2 * @copyright 2020 Kristuff */ @@ -357,15 +357,14 @@ class ApiManager extends ApiDefintion // Remove self ips foreach ($this->selfIps as $ip){ $message = str_replace($ip, '[-]', $message); - } + } // If we're reporting spam, further munge any email addresses in the report $emailPattern = "/[^@\s]*@[^@\s]*\.[^@\s]*/"; - $emailRemplacement = "[-]"; - $message = preg_replace($emailPattern, $emailRemplacement, $message); + $message = preg_replace($emailPattern, "[-]", $message); // Make sure message is less 1024 chars - return substr($message, 0,1024); + return substr($message, 0, 1024); } /** diff --git a/lib/InvalidPermissionException.php b/lib/InvalidPermissionException.php index d9a6c25..65d92c1 100644 --- a/lib/InvalidPermissionException.php +++ b/lib/InvalidPermissionException.php @@ -14,7 +14,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * @version 0.9.1 + * @version 0.9.2 * @copyright 2020 Kristuff */