From: moodler Date: Mon, 19 May 2003 13:14:29 +0000 (+0000) Subject: Add slashes to data when setting up guest account X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b95c3ab89671f5e40be6f2f427c831209b01ad24;p=moodle.git Add slashes to data when setting up guest account --- diff --git a/login/index.php b/login/index.php index 4be43ddf00..701630292e 100644 --- a/login/index.php +++ b/login/index.php @@ -6,10 +6,10 @@ if (! record_exists("user", "username", "guest")) { $guest->username = "guest"; $guest->password = md5("guest"); - $guest->firstname = get_string("guestuser"); + $guest->firstname = addslashes(get_string("guestuser")); $guest->lastname = " "; $guest->email = "root@localhost"; - $guest->description = get_string("guestuserinfo"); + $guest->description = addslashes(get_string("guestuserinfo")); $guest->confirmed = 1; $guest->lang = $CFG->lang; $guest->timemodified= time();