mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +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;
|
$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?";
|
$errormsg = "The value for \$apisslverify is incorrect in your config. Did you configure it?";
|
||||||
$blocklogin = TRUE;
|
$blocklogin = TRUE;
|
||||||
|
} else {
|
||||||
|
$apisslverify = ( bool ) $apisslverify;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($authdb)) {
|
if (!isset($authdb)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue