Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#52155 new defect (bug)

Cyrillic SVG support is broken in 5.6

Reported by: xorred's profile xorred Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6
Component: Media Keywords:
Focuses: Cc:


Cyrillic SVG support is broken.
UTF and ASCII svg file names works just fine.

Example: try to upload this file to any media library on any WordPress installation:подготовка-аудит-ит-безопасности.svg

It uploads fine, but does not display in Media. Also, when you try to insert it into a page or post, it inserts only word 2 and 3 from the file name.
If you rename the same file to file.svg (ascii english) - it displays just fine, gets inserted just fine.


You try to insert it, it inserts word2-word3.svg only and the result is a broken image link.

The file however is in the library, you can access it as the example I gave above.

Change History (3)

This ticket was mentioned in Slack in #core by lukecarbis. View the logs.

2 years ago

#2 @lukecarbis
2 years ago

@xorred Thanks for reporting this. I just tried replicating the problem in WordPress 5.6, but I had no problem uploading the file you linked to.

I was using a plugin called Safe SVG to enable SVG uploads – perhaps the issue is related to the method you use to enable SVGs?

#3 @xorred
2 years ago

Could it be because you use Apache and I use Litespeed?

My concern is that it worked perfectly fine for almost a year and then stopped after the latest WordPress upgrade. I use the same plugin

Last edited 2 years ago by xorred (previous) (diff)
Note: See TracTickets for help on using tickets.