Fixed an unquoted string (merged from stable)
This commit is contained in:
+1
-1
@@ -728,7 +728,7 @@ function create_user_record($username, $password) {
|
||||
global $REMOTE_ADDR, $CFG;
|
||||
//just in case check text case
|
||||
$username = trim(moodle_strtolower($username));
|
||||
if (function_exists(auth_get_userinfo)) {
|
||||
if (function_exists('auth_get_userinfo')) {
|
||||
if ($newinfo = auth_get_userinfo($username)) {
|
||||
foreach ($newinfo as $key => $value){
|
||||
$newuser->$key = addslashes(stripslashes($value)); // Just in case
|
||||
|
||||
Reference in New Issue
Block a user