Closed
Bug 151529
Opened 22 years ago
Closed 22 years ago
No list of votes shown if there is a plus sign (+) in the address
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: zug_treno, Assigned: bbaetz)
References
()
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
829 bytes,
patch
|
jouni
:
review+
jouni
:
review+
|
Details | Diff | Splinter Review |
If you want to see all votes of somebody with a + sign in his/her e-mail address, it will show an errormessage about it not being a valid username. How to reproduce: 1. Go to a bug with a lot of voters (i.e. bug 22687). 2. Click on show votes for this bug. 3. Find a random voter with a + in his/her e-mail address. 4. Click on the address to see his/her other votes. Result: an error message. Expected: a list with votes. Using %2b instead of + will return the correct result.
Assignee | ||
Comment 1•22 years ago
|
||
We need to 'FILTER url FILTER html' the email address Note that the + in the username answers the question of whether email addresses need uri escaping as well as html escaping - they do.
Keywords: regression
Target Milestone: --- → Bugzilla 2.16
Assignee | ||
Comment 2•22 years ago
|
||
Sigh. We actually need url_quote, because + is valid in a uri... We can't use this for linkification, because then the @ is escaped, which isn't what we want. Sigh. mozmail seems happy with taking 'mailto:foo+bar@localhost', and not converting the + to a space. Lets leave that part, I think.
Assignee | ||
Comment 3•22 years ago
|
||
-> me
Comment 4•22 years ago
|
||
Is there a reason to use the pipe syntax here, when all the other templates use "FILTER"?
Assignee | ||
Comment 5•22 years ago
|
||
I prefer | - its shorter + simpler Most use FILTER because ISTR | is a newer addition, and at the time we didn't require that new version of TT. I'm not sure about that, though.
Comment 6•22 years ago
|
||
Gerv, Myk, Dave cc'd for comments. | or FILTER, then? I prefer FILTER because of its readability. | is more Perlish, though. Anyway, I don't think it's a good idea to mix them; we should pick one and stick with it. My vote goes for consistent use of FILTER, not the least because we've just implemented a load of templates with that.
Assignee | ||
Comment 7•22 years ago
|
||
Fine. Also, we don't need to html escape after url quoting, because url quoting converts non-alphanum, _, - and . to %XX form anyway.
Attachment #87523 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
Shouldn't you whack all the instances of not filtering email addresses while you're at it?
Assignee | ||
Comment 9•22 years ago
|
||
No, this doesn't affect display, the issue here is that + is 'special' wrt a uri. See comment 2 on why we can't use this for linkifying mailto stuff.
Comment 10•22 years ago
|
||
Comment on attachment 87772 [details] [diff] [review] v2 2xr=jouni
Attachment #87772 -
Flags: review+
Assignee | ||
Comment 11•22 years ago
|
||
Checked in, trunk + branch
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•