Skip to content

Commit

Permalink
fix(targetticket,targetchange): too many escaping on target_name
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Aug 11, 2020
1 parent 8187a97 commit fcfbed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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'] as $key) {
$input[$key] = $DB->escape($input[$key]);
}

Expand Down
2 changes: 1 addition & 1 deletion inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
}

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

Expand Down

0 comments on commit fcfbed9

Please sign in to comment.