bug #1804081 [export] export on server does not obey AllowAnyWhereRecoding
This commit is contained in:
@@ -169,6 +169,9 @@ function PMA_exportOutputHandler($line)
|
||||
}
|
||||
} else {
|
||||
if ($GLOBALS['asfile']) {
|
||||
if ($GLOBALS['output_charset_conversion']) {
|
||||
$line = PMA_convert_string($GLOBALS['charset'], $GLOBALS['charset_of_file'], $line);
|
||||
}
|
||||
if ($GLOBALS['save_on_server'] && strlen($line) > 0) {
|
||||
$write_result = @fwrite($GLOBALS['file_handle'], $line);
|
||||
if (!$write_result || ($write_result != strlen($line))) {
|
||||
@@ -183,9 +186,6 @@ function PMA_exportOutputHandler($line)
|
||||
} // end if
|
||||
} else {
|
||||
// We export as file - output normally
|
||||
if ($GLOBALS['output_charset_conversion']) {
|
||||
$line = PMA_convert_string($GLOBALS['charset'], $GLOBALS['charset_of_file'], $line);
|
||||
}
|
||||
echo $line;
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user