We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5afacd commit 229e322Copy full SHA for 229e322
public_html/lists/admin/import2.php
@@ -298,7 +298,8 @@
298
} else {
299
//# define mapping based on existing attribute or ask for it
300
//@@ Why is $attributes not used
301
- $existing = Sql_Fetch_Row_Query('select id from '.$tables['attribute']." where name = \"$column\"");
+ $query = sprintf('select id from %s where name = "%s"', $tables['attribute'], sql_escape($column));
302
+ $existing = Sql_Fetch_Row_Query($query);
303
$_SESSION['import_attribute'][$column] = array(
304
'index' => $i,
305
'record' => $existing[0],
0 commit comments