Issue #2357311 by penyaskito: Fixed Follow-up to SA-CORE-2014-005 (tests don't work correctly on non-MySQL databases).
parent
19b32a3ab4
commit
88dcf91f2f
|
@ -30,7 +30,7 @@ class QueryTest extends DatabaseTestBase {
|
|||
public function testArrayArgumentsSQLInjection() {
|
||||
// Attempt SQL injection and verify that it does not work.
|
||||
$condition = array(
|
||||
"1 ;INSERT INTO {test} SET name = 'test12345678'; -- " => '',
|
||||
"1 ;INSERT INTO {test} (name) VALUES ('test12345678'); -- " => '',
|
||||
'1' => '',
|
||||
);
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue