Opened 2 years ago
Last modified 2 years ago
#52155 new defect (bug)
Cyrillic SVG support is broken in 5.6
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | 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.
@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?