diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-31 10:13:37 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-31 10:14:04 +0100 |
commit | fdf6fcb3b1405016146088f547085c5d08ff0398 (patch) | |
tree | 27d11a19734b5d72e4940e86a05f7313ebe94bf3 /etc | |
parent | fa77655557586453a0279566a84d01cd25645978 (diff) | |
download | pfsense-fdf6fcb3b1405016146088f547085c5d08ff0398.zip pfsense-fdf6fcb3b1405016146088f547085c5d08ff0398.tar.gz |
Fixes #4340 encode username same as with password to avoid issues with special chars.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/openvpn.auth-user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.auth-user.php b/etc/inc/openvpn.auth-user.php index 3f199e3..e212fb3 100644 --- a/etc/inc/openvpn.auth-user.php +++ b/etc/inc/openvpn.auth-user.php @@ -84,7 +84,7 @@ openlog("openvpn", LOG_ODELAY, LOG_AUTH); if (isset($_GET)) { $authmodes = explode(",", $_GET['authcfg']); - $username = $_GET['username']; + $username = base64_decode(str_replace('%3D', '=', $_GET['username'])); $password = base64_decode(str_replace('%3D', '=', $_GET['password'])); $common_name = $_GET['cn']; $modeid = $_GET['modeid']; |