From d1c3ada631b051baec7ebba94ebfcb4f85eaae61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 23 Jun 2014 15:51:39 +0200 Subject: [PATCH] map file name sanitizing --- application/core/Files/FileUtil.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/core/Files/FileUtil.php b/application/core/Files/FileUtil.php index b40dbe80..0c7a222a 100644 --- a/application/core/Files/FileUtil.php +++ b/application/core/Files/FileUtil.php @@ -103,6 +103,7 @@ abstract class FileUtil { $fileName = Formatter::stripCodes($fileName); $fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName); $fileName = preg_replace('/[^[:print:]]/', '', $fileName); + $fileName = Formatter::utf8($fileName); return $fileName; }