Skip to content

Commit 244a20c

Browse files
MacJoomQuyTon
andauthored
[6.0] Remove call to 'toPunycode' which throws error for files with '_' (#45627)
* Remove call to 'toPunycode' which throws error for files with underscores * Remove library --------- Co-authored-by: Quy Ton <[email protected]>
1 parent 66e41b4 commit 244a20c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugins/filesystem/local/src/Adapter/LocalAdapter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Joomla\CMS\Image\Exception\UnparsableImageException;
1818
use Joomla\CMS\Image\Image;
1919
use Joomla\CMS\Language\Text;
20-
use Joomla\CMS\String\PunycodeHelper;
2120
use Joomla\CMS\Uri\Uri;
2221
use Joomla\CMS\User\CurrentUserTrait;
2322
use Joomla\Component\Media\Administrator\Adapter\AdapterInterface;
@@ -817,9 +816,6 @@ private function getSafeName(string $name): string
817816
throw new \Exception(Text::_('COM_MEDIA_ERROR_MAKESAFE'));
818817
}
819818

820-
// Transform filename to punycode
821-
$name = PunycodeHelper::toPunycode($name);
822-
823819
// Get the extension
824820
$extension = File::getExt($name);
825821

0 commit comments

Comments
 (0)