Permalink
Browse files

added "format_string" and "stripslashes" when print HotPot name to br…

…owser
  • Loading branch information...
1 parent e27a943 commit 259bcf0c8b5c1e1351e1685c6e99ff8b9f3b354f gbateson committed Oct 6, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 "<li>".get_string("modulename", "hotpot")." &quot;".$record->name."&quot;</li>";';
+ $more_restore .= 'print "<li>".get_string("modulename", "hotpot")." &quot;".format_string(stripslashes($record->name),true)."&quot;</li>";';
}
$more_restore .= 'backup_flush(300);';
if (function_exists('restore_userdata_selected')) {

0 comments on commit 259bcf0

Please sign in to comment.