diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-02-10 20:47:21 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-02-10 20:47:21 +0100 |
commit | ed56ce5a1d12b5a065e2c375a182adc1b2d8f91d (patch) | |
tree | acf0b674f7de4faea4ac2a1fbc94abbaf74eaf6f /etc/inc/openvpn.tls-verify.php | |
parent | afb388159bc5a55d784404411ef1a7c7d22625a5 (diff) | |
download | pfsense-ed56ce5a1d12b5a065e2c375a182adc1b2d8f91d.zip pfsense-ed56ce5a1d12b5a065e2c375a182adc1b2d8f91d.tar.gz |
Fixes #4329, Fix even tls.auth script by using proper isset() test as the fixes for other authentication scripts.
Diffstat (limited to 'etc/inc/openvpn.tls-verify.php')
-rw-r--r-- | etc/inc/openvpn.tls-verify.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/openvpn.tls-verify.php b/etc/inc/openvpn.tls-verify.php index 1ef0f9a..9fd896b 100644 --- a/etc/inc/openvpn.tls-verify.php +++ b/etc/inc/openvpn.tls-verify.php @@ -49,7 +49,7 @@ require_once("interfaces.inc"); openlog("openvpn", LOG_ODELAY, LOG_AUTH); /* read data from command line */ -if (isset($_GET)) { +if (isset($_GET['certdepth'])) { $cert_depth = $_GET['certdepth']; $cert_subject = urldecode($_GET['certsubject']); $allowed_depth = $_GET['depth']; @@ -73,7 +73,7 @@ foreach ($subj at $s) { if (isset($allowed_depth) && ($cert_depth > $allowed_depth)) { syslog(LOG_WARNING, "Certificate depth {$cert_depth} exceeded max allowed depth of {$allowed_depth}.\n"); - if (isset($_GET)) { + if (isset($_GET['certdepth'])) { echo "FAILED"; closelog(); return; @@ -87,7 +87,7 @@ if (isset($allowed_depth) && ($cert_depth > $allowed_depth)) { //syslog(LOG_WARNING, "Found certificate {$argv[2]} with depth {$cert_depth}\n"); closelog(); -if (isset($_GET)) +if (isset($_GET['certdepth'])) echo "OK"; else exit(0); |