Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP - add trim() to $_POST['auth_user'] & $_POST['auth_user2'] #4037

Merged
merged 3 commits into from
May 31, 2019

Conversation

heper
Copy link
Contributor

@heper heper commented Jan 16, 2019

@@ -189,11 +189,11 @@
$passwd = $cpcfg['radmac_secret'];
$context = 'radmac'; // Radius MAC authentication
} elseif (!empty($_POST['auth_user2'])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be better like that ?
} elseif (!empty(trim($_POST['auth_user2']))) {
because : empty(" ") is false

@netgate-git-updates netgate-git-updates merged commit cd39f5e into pfsense:master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants