mirror of
https://github.com/kristuff/abuseipdb
synced 2025-08-19 21:13:13 -07:00
v0.9.11
**Fixed** - getCategoryIdByName and getCategoryNameById now return string (instead array) - IoT Targeted report category now named iot (instead of oit)
This commit is contained in:
parent
77c2857eb8
commit
adff27d86d
7 changed files with 12 additions and 12 deletions
|
@ -32,7 +32,7 @@ Deploy with composer:
|
|||
```json
|
||||
...
|
||||
"require": {
|
||||
"kristuff/abuseipdb": ">=0.9.10-stable"
|
||||
"kristuff/abuseipdb": ">=0.9.11-stable"
|
||||
},
|
||||
```
|
||||
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
@ -128,7 +128,7 @@ abstract class ApiBase
|
|||
|
||||
// Abuse was targeted at an "Internet of Things" type device. Include
|
||||
// information about what type of device was targeted in the comments.
|
||||
['oit' , '23', 'IoT Targeted', true],
|
||||
['iot' , '23', 'IoT Targeted', true],
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -153,11 +153,11 @@ abstract class ApiBase
|
|||
*
|
||||
* @return string|bool The category id in string format if found, otherwise false
|
||||
*/
|
||||
public static function getCategoryIdbyName(string $categoryName)
|
||||
public static function getCategoryIdByName(string $categoryName)
|
||||
{
|
||||
foreach (self::$aipdbApiCategories as $cat){
|
||||
if ($cat[0] === $categoryName) {
|
||||
return $cat;
|
||||
return $cat[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -178,7 +178,7 @@ abstract class ApiBase
|
|||
{
|
||||
foreach (self::$aipdbApiCategories as $cat){
|
||||
if ($cat[1] === $categoryId) {
|
||||
return $cat;
|
||||
return $cat[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
@ -35,7 +35,7 @@ class ApiHandler extends ApiBase
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = 'v0.9.10';
|
||||
const VERSION = 'v0.9.11';
|
||||
|
||||
/**
|
||||
* The ips to remove from report messages
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
|
|
@ -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.10
|
||||
* @version 0.9.11
|
||||
* @copyright 2020-2021 Kristuff
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue