]> git.mjollnir.org Git - moodle.git/commitdiff
Need to addslashes before put summary section data to db !!!
authorstronk7 <stronk7>
Tue, 10 Jun 2003 17:27:08 +0000 (17:27 +0000)
committerstronk7 <stronk7>
Tue, 10 Jun 2003 17:27:08 +0000 (17:27 +0000)
Now restoring sections is working.
User restoring failed !! -> Too much records !!

backup/restorelib.php

index 5049a92b1a8a72b1942bdb2f450f1245446a95d8..4d31cac86de5e77f6aff71f5ff1ef950e065ef56 100644 (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