Permalink
Browse files

Need to addslashes before put summary section data to db !!!

Now restoring sections is working.
User restoring failed !! -> Too much records !!
  • Loading branch information...
1 parent 4f39d4f commit d223ada029c498c4ad4b3a4b9c04c942e6cd1f9f stronk7 committed Jun 10, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/restorelib.php
View
@@ -323,7 +323,7 @@ function restore_create_sections($restore,$xml_file) {
$sequence = "";
$section->course = $restore->course_id;
$section->section = $sect->number;
- $section->summary = $sect->summary;
+ $section->summary = addslashes($sect->summary);
$section->visible = $sect->visible;
$section->sequence = "";
//Now calculate the section's newid

0 comments on commit d223ada

Please sign in to comment.