Opened 7 years ago

Closed 7 years ago

#24471 closed Cleanup/optimization (fixed)

Exclude quotes and angle brackets from urlize URLs

Reported by: Shai Berger Owned by: nobody
Component: Template system Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I think we should enhance the token-splitting regex used by urlize() -- currently whitespace -- to include the quotes and maybe the < and > characters. They don't belong in an automatically-recognized URL.

Change History (2)

comment:1 Changed 7 years ago by Tim Graham

Has patch: set

comment:2 Changed 7 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 3ed9c7bdfe9f40d31dadb6734a5692c8b9d6d6dc:

Fixed #24471 -- Enhanced urlize regex to exclude quotes and angle brackets.

Note: See TracTickets for help on using tickets.
Back to Top