[wp-trac] [WordPress Trac] #62037: make_clickable doesn't handle closing parenthesis character just before the 'dot' on a file URL.
WordPress Trac
noreply at wordpress.org
Thu Sep 12 17:17:18 UTC 2024
#62037: make_clickable doesn't handle closing parenthesis character just before the
'dot' on a file URL.
--------------------------+------------------------------
Reporter: rhellewell@… | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by rhellewell@…):
Note that the issue is not the removal of the closing paren from the text
of the url, but that the example text is not turned into a valid URL. The
HREF value is truncated to 'break' the URL.
So the HREF value of the text when converted by make_clickable
{{{
https://www.example.com/some-image(2).jpg
}}}
is turned into a clickable URL of [https://www.example.com/some-image(2]
. Which breaks the URL.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62037#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list