mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Force $apisslverify into a true or false
This commit is contained in:
parent
a8fadba0e0
commit
3ff38a443c
1 changed files with 3 additions and 1 deletions
|
@ -19,9 +19,11 @@ if (!isset($apiproto) or !preg_match('/^http(s)?$/', $apiproto)) {
|
|||
$blocklogin = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($apisslverify) or !preg_match('/^[01]$/', $apisslverify)) {
|
||||
if (!isset($apisslverify)) {
|
||||
$errormsg = "The value for \$apisslverify is incorrect in your config. Did you configure it?";
|
||||
$blocklogin = TRUE;
|
||||
} else {
|
||||
$apisslverify = ( bool ) $apisslverify;
|
||||
}
|
||||
|
||||
if (!isset($authdb)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue