Skip to content

Commit

Permalink
Fix possible SQL injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Tham committed Oct 12, 2023
1 parent b95445f commit c949586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/admin_tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
$tag_ids = array();
foreach ($tag_names as $tag_name)
{
array_push( $tag_ids, tag_id_from_tag_name($sync_options['osm_tag_group'].":".$tag_name) );
array_push( $tag_ids, tag_id_from_tag_name($sync_options['osm_tag_group'].":".pwg_db_real_escape_string($tag_name)) );
}
/* Assign tags to image */
//print_r($tag_ids);
Expand Down

0 comments on commit c949586

Please sign in to comment.