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)

2.17
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: zug_treno, Assigned: bbaetz)

References

()

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

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.
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
Attached patch v1 (obsolete) — Splinter Review
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.
-> me
Assignee: endico → bbaetz
Keywords: patch, review
Is there a reason to use the pipe syntax here, when all the other templates use
"FILTER"?
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.
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.
Attached patch v2Splinter Review
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
Shouldn't you whack all the instances of not filtering email addresses while
you're at it?
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 on attachment 87772 [details] [diff] [review]
v2

2xr=jouni
Attachment #87772 - Flags: review+
Checked in, trunk + branch
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: