Skip to content

Commit

Permalink
MAIN-30 - SA-CORE-2014-005 - Drupal core - SQL injection
Browse files Browse the repository at this point in the history
  • Loading branch information
BBGuy committed Oct 16, 2014
1 parent cc3cd39 commit d1bee63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/database/database.inc
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ abstract class DatabaseConnection extends PDO {
// to expand it out into a comma-delimited set of placeholders.
foreach (array_filter($args, 'is_array') as $key => $data) {
$new_keys = array();
foreach ($data as $i => $value) {
foreach (array_values($data) as $i => $value) {
// This assumes that there are no other placeholders that use the same
// name. For example, if the array placeholder is defined as :example
// and there is already an :example_2 placeholder, this will generate
Expand Down

0 comments on commit d1bee63

Please sign in to comment.