mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-05 02:34:38 +02:00
Merge branch 'Development'
This commit is contained in:
commit
960d141246
5 changed files with 74 additions and 38 deletions
|
@ -325,6 +325,6 @@ class Validator
|
|||
public static function containsKeyword($string, $keywords = ['mikrotik', 'hotspot', 'pppoe', 'radius', 'dummy'])
|
||||
{
|
||||
$regex = '/' . implode('|', $keywords) . '/i';
|
||||
return preg_match($regex, $string);
|
||||
return preg_match($regex, strtolower($string));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue