From 17dcc4abef4e2415a31bf7072744bdec1f862cd7 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 28 Jul 2012 17:49:47 +0200
Subject: [PATCH] decode utf8 filenames in JpegMeta FS#2553

---
 inc/JpegMeta.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/JpegMeta.php b/inc/JpegMeta.php
index ce643a7e6..ba6a2b5bb 100644
--- a/inc/JpegMeta.php
+++ b/inc/JpegMeta.php
@@ -1209,7 +1209,7 @@ class JpegMeta {
     function _parseFileInfo() {
         if (file_exists($this->_fileName) && is_file($this->_fileName)) {
             $this->_info['file'] = array();
-            $this->_info['file']['Name'] = utf8_basename($this->_fileName);
+            $this->_info['file']['Name'] = utf8_decodeFN(utf8_basename($this->_fileName));
             $this->_info['file']['Path'] = fullpath($this->_fileName);
             $this->_info['file']['Size'] = filesize($this->_fileName);
             if ($this->_info['file']['Size'] < 1024) {
-- 
GitLab