Skip to content

Commit bf445db

Browse files
committed
ignore tags in CSV import headers
1 parent 6e1379f commit bf445db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public_html/lists/admin/import2.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
// var_dump($system_attributes);
223223
$system_attribute_reverse_map = array();
224224
for ($i = 0; $i < count($headers); ++$i) {
225-
$column = clean($headers[$i]);
225+
$column = strip_tags($headers[$i]);
226226
// print $i."<h3>$column</h3>".$_POST['column'.$i].'<br/>';
227227
$column = preg_replace('#/#', '', $column);
228228
// $dbg = "Field $i: $headers[$i] - $column - form/option:" . $_POST['column' . $i];
@@ -383,6 +383,7 @@
383383
}
384384
foreach ($_SESSION['import_attribute'] as $column => $rec) {
385385
if (trim($column) != '') {
386+
$column = htmlspecialchars($column);
386387
$ls->addElement($column);
387388
if ($rec['record'] == 'new') {
388389
$ls->addColumn($column, $GLOBALS['I18N']->get('maps to'),

0 commit comments

Comments
 (0)