Skip to content

Commit 4c80b86

Browse files
authored
Add comment for changed line
1 parent b54f09f commit 4c80b86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/virtuser_file/virtuser_file.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function email2user($p)
6868
$arr = preg_split('/\s+/', trim($r[$i]));
6969

7070
if (count($arr) > 0) {
71+
// Replace '\@' with '@' to handle cases where internal usernames include an '@' character.
72+
// Sometimes usernames with '@' are saved with a leading '\' to avoid conflicts.
7173
$p['user'] = trim(str_replace('\@', '@', $arr[count($arr) - 1]));
7274
break;
7375
}

0 commit comments

Comments
 (0)