Labels: Type-Defect Priority-Medium
New issue 2970 by rich.tol...@ni.com: linkifyText(): URL parsing fails if
URL is enclosed in XML-like tags
What version are you running?
What's the URL of the page containing the problem?
What steps will reproduce the problem?
1. Set description to contain a URL enclosed in pseudo-XML tags:
What is the expected output? What do you see instead?
The description should contain a link to "http://bar/" (with that
Instead, I see a link to "http://bar/</foo" (with that highlighted).
What operating system are you using? What browser?
Chrome, either on Win7 or Arch Linux.
Please provide any additional information below.
It looks like this is due to linkifyText() immediately htmlEncode()ing the
text before linkification: "http://bar/</foo" is not a particularly valid
URL, but "http://bar/</foo" is.
Perhaps the fix for this is to only htmlEncode() the text between matching
URLs, and not the URLs themselves?
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/reviewboard-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.