Skip to content

Commit

Permalink
fix(targetchange): prevent SQL escaping bug
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Aug 3, 2020
1 parent 6ed61cf commit c88cb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/targetchange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
}

// Escape text fields
foreach (['target_name'] as $key) {
foreach (['name', 'target_name'] as $key) {
$input[$key] = $DB->escape($input[$key]);
}

Expand Down

0 comments on commit c88cb99

Please sign in to comment.