From e453cb084be2ac31a9d0c1f77b4dd917cdba080b Mon Sep 17 00:00:00 2001 From: Volkmar Kantor Date: Tue, 15 Dec 2015 16:42:13 +0100 Subject: [PATCH] bugfix proper handling of non latin characters in filenames --- functions/save.php | 2 +- readme.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/save.php b/functions/save.php index 558591e..87a7210 100644 --- a/functions/save.php +++ b/functions/save.php @@ -253,7 +253,7 @@ function generateFilename( $file, $w, $h ){ $suffix = "{$w}x{$h}"; $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}"; - return $destfilename; + return html_entity_decode($destfilename); } } ?> diff --git a/readme.txt b/readme.txt index 847d45b..ebf30d5 100644 --- a/readme.txt +++ b/readme.txt @@ -103,6 +103,9 @@ If you fork and planning to publish the forked plugin, please contact me. 5. Choose what image-sizes should be hidden (for what post-types), for better usability. == Changelog == += 0.10.5 = +* bugfix: proper handling of non latin characters in filenames + = 0.10.4 = * i18n of the button in the image-media-view changed * add 'medium_large' size to (intern) default-sizes (fix notice)