mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 11:19:59 +01:00
Use simpler logic
Co-authored-by: Adam Warner <me@adamwarner.co.uk> Signed-off-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
@@ -640,7 +640,7 @@ if ($_POST['action'] == 'get_groups') {
|
||||
}
|
||||
}
|
||||
|
||||
if( ! ($_POST['type'] == '2' || $_POST['type'] == '3'))
|
||||
if( $_POST['type'] != '2' && $_POST['type'] != '3')
|
||||
{
|
||||
// If not adding a RegEx, we convert the domain lower case and check whether it is valid
|
||||
$domain = strtolower($domain);
|
||||
|
||||
Reference in New Issue
Block a user