From 0b4c3b17e2209b1804a7b6b5974e5217c3e2a87e Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 3 Nov 2014 09:44:23 -0500 Subject: Issue #2357311 by penyaskito: Fixed Follow-up to SA-CORE-2014-005 (tests don't work correctly on non-MySQL databases). --- modules/simpletest/tests/database_test.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index a65cc64ec..12ddb343e 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -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 { -- cgit v1.2.3