mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
And binary tests should use addslahes at all. Testing cross-db right now.
This commit is contained in:
parent
a904349624
commit
838e92f788
1 changed files with 3 additions and 3 deletions
|
@ -799,7 +799,7 @@ class test extends XMLDBAction {
|
||||||
$test = new stdClass;
|
$test = new stdClass;
|
||||||
$test->status = false;
|
$test->status = false;
|
||||||
/// Build the record to insert
|
/// Build the record to insert
|
||||||
$rec->avatar = addslashes($fulltext);
|
$rec->avatar = $fulltext;
|
||||||
$rec->name = 'binarytest';
|
$rec->name = 'binarytest';
|
||||||
/// Calculate its length
|
/// Calculate its length
|
||||||
$textlen = strlen($fulltext);
|
$textlen = strlen($fulltext);
|
||||||
|
@ -830,7 +830,7 @@ class test extends XMLDBAction {
|
||||||
$test->sql = array();
|
$test->sql = array();
|
||||||
/// Build the record to insert
|
/// Build the record to insert
|
||||||
$rec->intro = addslashes($basetext);
|
$rec->intro = addslashes($basetext);
|
||||||
$rec->avatar = addslashes($basetext);
|
$rec->avatar = $basetext;
|
||||||
$rec->name = 'updatelobs';
|
$rec->name = 'updatelobs';
|
||||||
/// Calculate its length
|
/// Calculate its length
|
||||||
$textlen = $textlib->strlen($basetext);
|
$textlen = $textlib->strlen($basetext);
|
||||||
|
@ -899,7 +899,7 @@ class test extends XMLDBAction {
|
||||||
$test->status = false;
|
$test->status = false;
|
||||||
$test->sql = array();
|
$test->sql = array();
|
||||||
/// Build the record to insert
|
/// Build the record to insert
|
||||||
$rec->avatar = addslashes($fulltext);
|
$rec->avatar = $fulltext;
|
||||||
$rec->name = 'updatelobs';
|
$rec->name = 'updatelobs';
|
||||||
/// Calculate its length
|
/// Calculate its length
|
||||||
$textlen = strlen($fulltext);
|
$textlen = strlen($fulltext);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue