From 259bcf0c8b5c1e1351e1685c6e99ff8b9f3b354f Mon Sep 17 00:00:00 2001 From: gbateson Date: Fri, 6 Oct 2006 06:22:15 +0000 Subject: [PATCH] added "format_string" and "stripslashes" when print HotPot name to browser --- mod/hotpot/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/restorelib.php b/mod/hotpot/restorelib.php index 5f79d481d4..992e570bfa 100644 --- a/mod/hotpot/restorelib.php +++ b/mod/hotpot/restorelib.php @@ -78,7 +78,7 @@ function hotpot_restore_mods($mod, $restore) { $more_restore = ''; // print a message after each hotpot is backed up if (!defined('RESTORE_SILENTLY')) { - $more_restore .= 'print "
  • ".get_string("modulename", "hotpot")." "".$record->name.""
  • ";'; + $more_restore .= 'print "
  • ".get_string("modulename", "hotpot")." "".format_string(stripslashes($record->name),true).""
  • ";'; } $more_restore .= 'backup_flush(300);'; if (function_exists('restore_userdata_selected')) { -- 2.39.5