mirror of
https://github.com/kristuff/abuseipdb
synced 2025-08-20 21:43:13 -07:00
v0.9.2
This commit is contained in:
parent
3f5ea52b1e
commit
368b7b4d75
3 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -357,15 +357,14 @@ class ApiManager extends ApiDefintion
|
||||||
// Remove self ips
|
// Remove self ips
|
||||||
foreach ($this->selfIps as $ip){
|
foreach ($this->selfIps as $ip){
|
||||||
$message = str_replace($ip, '[-]', $message);
|
$message = str_replace($ip, '[-]', $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue