From b95c3ab89671f5e40be6f2f427c831209b01ad24 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 19 May 2003 13:14:29 +0000 Subject: [PATCH] Add slashes to data when setting up guest account --- login/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5