Closed Bug 125718 Opened 23 years ago Closed 22 years ago

URL: encoding in window.open() of "&" is incorrect

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 174628
Future

People

(Reporter: pedro.alves, Assigned: jst)

References

Details

(Whiteboard: [stale])

There is a problem in window.open that causes unicoded args in GET to
be unproperly passed to the server. Look at the following example and
the corresponding lines in apache's access.log

<html><head><body>

<a
href="http://127.0.0.1/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo&#231;o&address_sel=7&mode=choose&single=1&tipo_sel=1">
Normal link </a><p>

<a href="javascript:window.location.href =
'http://127.0.0.1/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo&#231;o&address_sel=7&mode=choose&single=1&tipo_sel=1'">
Window.location.href </a><p>

<a
href="javascript:open('http://127.0.0.1/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo&#231;o&address_sel=7&mode=choose&single=1&tipo_sel=1');void(0);">
Window.open </a><p>

</body></html>


# Apache's access.log
1 - Normal link:
  127.0.0.1 - - [15/Feb/2002:13:20:59 +0000] "GET
/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo%E7o&address_sel=7&mode=choose&single=1&tipo_sel=1
HTTP/1.1" 200 1247


2 - Window.location.href:
  127.0.0.1 - - [15/Feb/2002:13:21:15 +0000] "GET
/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo%E7o&address_sel=7&mode=choose&single=1&tipo_sel=1
HTTP/1.1" 200 1247



3 - Window.open: ** WRONG **
127.0.0.1 - - [15/Feb/2002:13:22:28 +0000] "GET
/cgi-bin/options.pl?m_id=34&toclose=1&tarefa=29&sessao=12260&msg_subject=Re:Almo%E7o%26address_sel%3D7%26mode%3Dchoose%26single%3D1%26tipo_sel%3D1
HTTP/1.1" 200 384
Browser, not engine. I'm not sure which component is responsible for this;
reassigning to DOM Level 0 for further triage; and cc'ing Boris -
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
Summary: improper url encoding in window.open → Improper URL encoding in window.open()
darin, this looks like a url parsing issue.....
will be fixed or at least fixable after i fix bug 124042
Status: UNCONFIRMED → ASSIGNED
Depends on: 124042
Ever confirmed: true
-> me
Assignee: jst → darin
Status: ASSIGNED → NEW
changing QA contact...

this looks an awful lot like bug 138877.

reporter: can you please try a recent nightly build to see if this bug has been
fixed.  thx!
Severity: critical → major
Component: DOM Level 0 → Networking
QA Contact: desale → tever
Whiteboard: [stale]
mass futuring of untargeted bugs
Target Milestone: --- → Future
qa to me.

Pedro: can we get an update on this?
QA Contact: tever → benc
Summary: Improper URL encoding in window.open() → URL: encoding in window.open() of "&" is incorrect
This is a duplicate of bug 174628 against DOM Level 0,
Using the window.open(<uri>,''), '&' character gets replaced by '%26' string

I will dupe against this later bug since it contains more development.
Reasssigning to DOM Level 0 for parity -
Assignee: darin → jst
Component: Networking → DOM Level 0
QA Contact: benc → desale
Pedro, thank you for this report; you will be cc'ed on bug 174628
so you can follow progress on this -

*** This bug has been marked as a duplicate of 174628 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.