From bb0ad40413a0d049126bfa4f040e5bdc43a9f488 Mon Sep 17 00:00:00 2001 From: Victor Volkov Date: Tue, 30 Mar 2010 12:56:06 -0400 Subject: [PATCH] Patch #2977725 XML export wrongly encoded --- ChangeLog | 1 + libraries/export/xml.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4da7a047..cf576c2b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - patch #2976790 [menu] Go to the upper level after table DROP, thanks to Kaarel Nummert - kaarelnu - patch #2978815 [pdf] Fix generating PDF with table dimensions, thanks to BlinK_ +- patch #2977725 [export] XML wrongly encoded, thanks to Victor Volkov - hanut 3.3.1.0 (2010-03-16) - bug #2941037 [core] Database structure not sorted by table correctly diff --git a/libraries/export/xml.php b/libraries/export/xml.php index 5b82ad5ec..aab58d0eb 100644 --- a/libraries/export/xml.php +++ b/libraries/export/xml.php @@ -337,7 +337,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) { if (!isset($record[$i]) || is_null($record[$i])) { $record[$i] = 'NULL'; } - $buffer .= ' ' . htmlspecialchars(utf8_encode((string)$record[$i])) + $buffer .= ' ' . htmlspecialchars((string)$record[$i]) . '' . $crlf; } $buffer .= ' ' . $crlf;