Closed Bug 309672 Opened 19 years ago Closed 9 years ago

Improve error handling when encountering invalid hostnames

Categories

(Core :: Networking, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: darin.moz, Unassigned)

References

Details

(Keywords: helpwanted)

Attachments

(1 file)

Improve error handling when encountering invalid hostnames. With the patch for bug 304904, hostnames containing invalid characters (such as '%', '/', and '\\') are treated as unresolvable (NS_ERROR_UNKNOWN_HOST). It would be better to report these hostnames as invalid instead of unknown. This would allow us to do the following: 1) bypass URL fixup code (e.g., it makes no sense to try loading www.www%2emozilla.org if www%2emozilla.org was rejected) 2) notify the user that invalid characters may be a sign of phishy activity
There's a patch in bug 304904 that implements a solution for this bug.
Keywords: helpwanted
Target Milestone: --- → mozilla1.9alpha
So is this still an issue? Bug 304904 implemented NS_ERROR_INVALID_HOST, right?
-> defaults
Assignee: darin.moz → nobody
QA Contact: benc → networking
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: