Skip to content

Commit b3248ad

Browse files
committed
Fix: allow users with a single-quote in username or email to login. Fixes #120
Yes, single quotes in emails are valid: https://stackoverflow.com/questions/4816424/are-single-quotes-legal-in-the-name-part-of-an-email-address
1 parent e0e1e68 commit b3248ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onelogin-saml-sso/php/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ function saml_acs() {
313313
exit();
314314
} else {
315315
$userdata = array();
316-
$userdata['user_login'] = wp_slash($username);
317-
$userdata['user_email'] = wp_slash($email);
316+
$userdata['user_login'] = wp_unslash($username);
317+
$userdata['user_email'] = wp_unslash($email);
318318
}
319319

320320
if (!empty($attrs)) {

0 commit comments

Comments
 (0)