Skip to content

Commit

Permalink
bug #1804081 [export] export on server does not obey AllowAnyWhereRec…
Browse files Browse the repository at this point in the history
…oding
  • Loading branch information
lem9 committed Nov 10, 2007
1 parent 1f4db0a commit 911f1ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -19,6 +19,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1826022 [privileges] unable to add user (MySQL 3.23) since PMA 2.11.2
- bug #1823045 [import] Error importing file with lowercase "delimiter"
- bug #1828913 [structure] Can't set FULLTEXT index on CHAR column
- bug #1804081 [export] export on server doesn't obey AllowAnyWhereRecoding

2.11.2.1 (not yet released)
- fixed possible SQL injection using database name
Expand Down
6 changes: 3 additions & 3 deletions export.php
Expand Up @@ -170,6 +170,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))) {
Expand All @@ -184,9 +187,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 {
Expand Down

0 comments on commit 911f1ae

Please sign in to comment.