From 7aa5554fdae18894ce208a03314d059aaf4a171c Mon Sep 17 00:00:00 2001 From: Dennis Marx <13888192+derco0n@users.noreply.github.com> Date: Tue, 14 Apr 2020 13:10:50 +0200 Subject: [PATCH] Fixed issue with non-ASCII-characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit non-ASCII-characters (ä,ö,ü,ß,...) had been stripped from files by escapeshellarg(), causing errors within av-plugin while scanning files that contain such characters. This will fix this situation. --- core/src/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/index.php b/core/src/index.php index 9f469f9201..bd9d8e1520 100644 --- a/core/src/index.php +++ b/core/src/index.php @@ -22,9 +22,11 @@ * Will dispatch the actions on the plugins. */ +setlocale(LC_ALL, "en_US.utf8"); //Set locale to UTF-8 to avoid stripping of non-ASCII-characters (e.g. in filenames). + use Pydio\Core\Http\TopLevelRouter; include_once("base.conf.php"); $router = new TopLevelRouter(); -$router->route(); \ No newline at end of file +$router->route();