Commit 0b4c3b17 authored by David_Rothstein's avatar David_Rothstein

Issue #2357311 by penyaskito: Fixed Follow-up to SA-CORE-2014-005 (tests don't...

Issue #2357311 by penyaskito: Fixed Follow-up to SA-CORE-2014-005 (tests don't work correctly on non-MySQL databases).
parent f7cf579d
......@@ -3400,7 +3400,7 @@ class DatabaseQueryTestCase extends DatabaseTestCase {
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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment