From: stronk7 Date: Thu, 9 Aug 2007 18:11:48 +0000 (+0000) Subject: Reverting deleted addslashes(). They are needed for proper testing after all. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=365a18e4b8d70b6904db77ae37feceaaa18435c0;p=moodle.git Reverting deleted addslashes(). They are needed for proper testing after all. Merged from MOODLE_18_STABLE --- diff --git a/admin/xmldb/actions/test/test.class.php b/admin/xmldb/actions/test/test.class.php index 1ec226c476..6c15b15e32 100644 --- a/admin/xmldb/actions/test/test.class.php +++ b/admin/xmldb/actions/test/test.class.php @@ -799,7 +799,7 @@ class test extends XMLDBAction { $test = new stdClass; $test->status = false; /// Build the record to insert - $rec->avatar = $fulltext; + $rec->avatar = addslashes($fulltext); $rec->name = 'binarytest'; /// Calculate its length $textlen = strlen($fulltext); @@ -830,7 +830,7 @@ class test extends XMLDBAction { $test->sql = array(); /// Build the record to insert $rec->intro = addslashes($basetext); - $rec->avatar = $basetext; + $rec->avatar = addslashes($basetext); $rec->name = 'updatelobs'; /// Calculate its length $textlen = $textlib->strlen($basetext); @@ -899,7 +899,7 @@ class test extends XMLDBAction { $test->status = false; $test->sql = array(); /// Build the record to insert - $rec->avatar = $fulltext; + $rec->avatar = addslashes($fulltext); $rec->name = 'updatelobs'; /// Calculate its length $textlen = strlen($fulltext);