Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55274, comment 6


Ignore:
Timestamp:
02/28/2022 06:39:56 PM (3 years ago)
Author:
dravnic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55274, comment 6

    initial v1  
    11I've tried using {{{esc_url()}}} like in https://core.trac.wordpress.org/attachment/ticket/36549/36549.2.diff but it didn't help.
    22
    3 The image filename that I used to test this is {{{smeće-1024x614.png}}} the special char in this filename is {{{ć}}} - a Croatian letter. In the src attribute path is properly encoded {{{sme%C4%87e-1024x614.png}}}}
     3The image filename that I used to test this is {{{smeće-1024x614.png}}} the special char in this filename is {{{ć}}} - a Croatian letter. In the src attribute path is properly encoded {{{sme%C4%87e-1024x614.png}}}
    44
    55With current code and with {{{esc_url()}}} the image was encoded in srcset as {{{smeće-1024x614.png}}} which is an invalid url.