Opened 10 years ago

Closed 10 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 by Tim Graham, 10 years ago

Has patch: set

comment:2 by Tim Graham <timograham@…>, 10 years ago

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