Added some stripslashes to generate correct exports.

This commit is contained in:
Michal Čihař
2003-08-11 08:39:23 +00:00
parent c354643805
commit c69386f3bc
4 changed files with 12 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$columns_cnt = mysql_num_fields($result);
for ($i = 0; $i < $columns_cnt; $i++) {
$columns[$i] = mysql_field_name($result, $i);
$columns[$i] = stripslashes(mysql_field_name($result, $i));
}
unset($i);
@@ -122,7 +122,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
for ($i = 0; $i < $columns_cnt; $i++) {
// There is no way to dectect a "NULL" value with PHP3
if ( isset($record[$columns[$i]]) && (!function_exists('is_null') || !is_null($record[$columns[$i]]))) {
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars($record[$columns[$i]])
$buffer .= ' <' . $columns[$i] . '>' . htmlspecialchars(stripslashes($record[$columns[$i]]))
. '</' . $columns[$i] . '>' . $crlf;
}
}