diff --git a/admin/admin_tag.php b/admin/admin_tag.php index 33c90ab..b1c4eb1 100644 --- a/admin/admin_tag.php +++ b/admin/admin_tag.php @@ -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);