summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-31 10:13:37 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-31 10:14:04 +0100
commitfdf6fcb3b1405016146088f547085c5d08ff0398 (patch)
tree27d11a19734b5d72e4940e86a05f7313ebe94bf3 /etc/inc/openvpn.auth-user.php
parentfa77655557586453a0279566a84d01cd25645978 (diff)
downloadpfsense-fdf6fcb3b1405016146088f547085c5d08ff0398.zip
pfsense-fdf6fcb3b1405016146088f547085c5d08ff0398.tar.gz
Fixes #4340 encode username same as with password to avoid issues with special chars.
Diffstat (limited to 'etc/inc/openvpn.auth-user.php')
-rw-r--r--etc/inc/openvpn.auth-user.php2
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'];
OpenPOWER on IntegriCloud