From a478aea3ca63ec052a0a46a84a6da5a52c4d1cf2 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 9 Apr 2020 20:46:14 +0200 Subject: [PATCH] Stop using pathinfo (fixes #272) Because it does not handle UTF-8 filenames correctly --- classes/Video.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/classes/Video.php b/classes/Video.php index 9c6adbf..eb794cb 100644 --- a/classes/Video.php +++ b/classes/Video.php @@ -274,14 +274,7 @@ class Video */ public function getFileNameWithExtension($extension) { - return html_entity_decode( - pathinfo( - $this->getFilename(), - PATHINFO_FILENAME - ) . '.' . $extension, - ENT_COMPAT, - 'ISO-8859-1' - ); + return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename()); } /**