From feeda916f7fff9269708c1f7f139d24fd21ecf32 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 13 Jul 2013 18:36:27 -0700 Subject: [PATCH] Don't append newlines to uploaded files --- adminer/include/functions.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 74e96f4a..f046ec44 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -643,8 +643,8 @@ function get_file($key, $decompress = false) { } elseif ($start == "\xEF\xBB\xBF") { // UTF-8 BOM $content = substr($content, 3); } + $return .= $content . "\n\n"; } - $return .= $content . "\n\n"; } //! support SQL files not ending with semicolon return $return; diff --git a/changes.txt b/changes.txt index fa3f7885..f0266013 100644 --- a/changes.txt +++ b/changes.txt @@ -8,6 +8,7 @@ Add button for dropping an index Display number of selected rows Disable underlining links Improve speed of CSV import +Don't append newlines to uploaded files, bug since Adminer 3.7.0 PostgreSQL: Fix handling of nextval() default values Adminer 3.7.1 (released 2013-06-29):