diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 17de6629..a0178cec 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -646,6 +646,8 @@ function get_file($key, $decompress = false) { $content = substr($content, 3); } $return .= $content . "\n\n"; + } else { + $return .= $content; } } //! support SQL files not ending with semicolon diff --git a/changes.txt b/changes.txt index 698d871f..236eb0cd 100644 --- a/changes.txt +++ b/changes.txt @@ -4,6 +4,7 @@ Disable highlighting in textareas with long texts Don't autofocus SQL textarea in Firefox Don't link NULL foreign key values Fix displaying images in Editor, bug since Adminer 3.6.0 +Fix uploading files, bug since Adminer 4.0.0 MongoDB: Count tables, display ObjectIds, sort, limit, offset, count rows Elasticsearch: Fix compiled version, create and drop DB, drop table