Closed Bug 191207 Opened 22 years ago Closed 21 years ago

meta http-equiv="refresh" with illegal URL incompatible with IE

Categories

(Core :: DOM: Navigation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: RalfPeter.Rohbeck, Assigned: adamlock)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021212

Not really a bug but an incompatibility with IE:
<meta http-equiv="refresh" content="3;url=mozredir 2.html"> will not open
'mozredir%202.html' but 'mozredir'.
Unfortunately, file names with embedded spaces are popular in Windoze/IE
dominated Intranets like ours :(


Reproducible: Always

Steps to Reproduce:
1. Open http://us.geocities.com/rohbeck/mozredir1.html

Actual Results:  
Mozilla redirects to http://us.geocities.com/rohbeck/mozredir


Expected Results:  
IE redirects to http://us.geocities.com/rohbeck/mozredir%202.html
(doesn't exist either because Geocities doesn't allow space in file name)
-> docshell
Assignee: darin → adamlock
Component: Networking: HTTP → Embedding: Docshell
QA Contact: httpqa → adamlock
Attached patch PatchSplinter Review
Problem was that the URL parser in the meta refresh stopped at the first
whitespace. I've changed the loop to carry on.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 118948 [details] [diff] [review]
Patch

Requesting r/sr on another meta refresh issue. This patch parses to the end of
the string or the closing quotation mark so that URLs containing spaces are
caught.
Attachment #118948 - Flags: superreview?(bzbarsky)
Attachment #118948 - Flags: review?(jaggernaut)
Comment on attachment 118948 [details] [diff] [review]
Patch

>+        if (isQuotedURI && *iter == '"' || *iter == '\'')

&& has higher precedence than || does.	You need parens here.

sr=bzbarsky with that change.
Attachment #118948 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 118948 [details] [diff] [review]
Patch

sr=alecf
Fix is checked in with parens fix.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #118948 - Flags: review?(jaggernaut)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: