Browse files

MDL-7647 confirmation email - usernames with slashes causing confirma…

…tion problems ; backported from 19_STABLE
  • Loading branch information...
1 parent b14560e commit 6e15bd0a93d3ff730758f056403f0c07b919f309 @stronk7 stronk7 committed Feb 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 login/confirm.php
View
2 login/confirm.php
@@ -19,7 +19,7 @@
if (!empty($data) || (!empty($p) && !empty($s))) {
if (!empty($data)) {
- $dataelements = explode('/',$data);
+ $dataelements = explode('/',$data, 2); // Stop after 1st slash. Rest is username. MDL-7647
$usersecret = $dataelements[0];
$username = $dataelements[1];
} else {

0 comments on commit 6e15bd0

Please sign in to comment.