Closed
Bug 97835
Opened 24 years ago
Closed 24 years ago
We incorrectly linkify words with '@' characters
Categories
(SeaMonkey :: MailNews: Message Display, defect)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.4
People
(Reporter: mscott, Assigned: mscott)
References
Details
Attachments
(1 file)
|
841 bytes,
patch
|
mscott
:
review+
mscott
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
Try sending yourself a message with a word that contains an @ sign like:
"hey, let's meet @8pm tonight."
When you view the message in mozilla, we turn the @8pm into a mailto url. Oops!!!
We should only linkify if we see a '.' in the same word after the @ sign. That's
not a perfect solution but it should reduce the number of false positives for
mailto url detection.
i.e. mscott@netscape.com would get linkified because a period follows the @.
but @8pm wouldn't be linkified.
| Assignee | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
inString.FindChar('.', pos) > 0
try
inString.FindChar('.', pos) != kNotFound
otherwise, r/sr=sspitzer
| Assignee | ||
Comment 3•24 years ago
|
||
I did that. thanks for the suggestion Seth.
| Assignee | ||
Updated•24 years ago
|
Attachment #47847 -
Flags: superreview+
Comment 4•24 years ago
|
||
Sorry for the spam, but I was wondering, should this also check for a
non-whitespace character before the @ character? Or is that already done somewhere?
| Assignee | ||
Comment 5•24 years ago
|
||
that's already done somewhere else. i shouldn't have typed @8pm as my test.
Think of i'll meet u@8pm
| Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.4
| Assignee | ||
Updated•24 years ago
|
Attachment #47847 -
Flags: review+
Comment 7•24 years ago
|
||
Whats about something@. and something@.some ?
OS: Windows 2000 → All
Hardware: PC → All
Comment 8•24 years ago
|
||
The patch should probably also check that there is no whitespace after the period.
For example: i'll meet u@8pm. later!
Comment 9•24 years ago
|
||
But : Please notify nobody@mozilla.org.
The last . should be stripped away.
Updated•24 years ago
|
Attachment #47847 -
Flags: approval+
Comment 10•24 years ago
|
||
Comment on attachment 47847 [details] [diff] [review]
the fix
a=asa on behalf of drivers.
| Assignee | ||
Comment 11•24 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 12•24 years ago
|
||
OK using sept 04 commercial trunk builds: win98, linux rh6.2 and mac OS 9.0
Status: RESOLVED → VERIFIED
Comment 13•24 years ago
|
||
eh, mscott, that bug is filed already since long time, and you own it.
Note that fixing this bug will make linking internal email addresses (like
<ben@myhost>) impossible.
> Whats about something@. and something@.some
That should be handled by the network component, because <mailto:something@.> is
not a valid URL (and we only link to valid URLs).
Comment 14•24 years ago
|
||
*** Bug 37215 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•