We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 749eb38 + 4c80b86 commit 875e370Copy full SHA for 875e370
plugins/virtuser_file/virtuser_file.php
@@ -68,7 +68,9 @@ public function email2user($p)
68
$arr = preg_split('/\s+/', trim($r[$i]));
69
70
if (count($arr) > 0) {
71
- $p['user'] = trim($arr[count($arr) - 1]);
+ // Replace '\@' with '@' to handle cases where internal usernames include an '@' character.
72
+ // Sometimes usernames with '@' are saved with a leading '\' to avoid conflicts.
73
+ $p['user'] = trim(str_replace('\@', '@', $arr[count($arr) - 1]));
74
break;
75
}
76
0 commit comments