Added some stripslashes to generate correct exports.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user