Make WordPress Core

Opened 4 years ago

Closed 13 months ago

#52155 closed defect (bug) (invalid)

Cyrillic SVG support is broken in 5.6

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

Description

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:
https://atlantsecurity.com/wp-content/uploads/2020/12/подготовка-аудит-ит-безопасности.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.

Example
word1-word2-word3.svg

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 (4)

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


4 years ago

#2 @lukecarbis
4 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
4 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 4 years ago by xorred (previous) (diff)

#4 @antpb
13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

It seems to me that this works as intended still. I havent seen any other reports of this in the three years since it was originally opened. To keep the media ticket backlog true I am going to close this as invalid since no futher issues have been reported in this. Also svg is not supported by default in core so this may be better raised to the plugin author of the plugin you are using to enable the uploads. If there are any core issues to report upstream, they would know best.

Note: See TracTickets for help on using tickets.