Opened 11 years ago

Closed 11 years ago

#7936 closed defect (duplicate)

dojo._Url broken for more than two args

Reported by: Mike Wilson Owned by: anonymous
Priority: high Milestone: tbd
Component: General Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

Two args ok:

new dojo._Url("http://mysite.com/a/b/c/d.html", "..")
-> http://mysite.com/a/b/

Three args broken:

new dojo._Url("http://mysite.com/a/b/c/d.html", "..", "..")
-> ..

The reason seems to be the local variable first initialized as:

var uri = [_a[0]];

and then used in a different way later on, thereby corrupting state after the first iteration in the arguments loop.

Change History (1)

comment:1 Changed 11 years ago by Adam Peller

Resolution: duplicate
Status: newclosed

dup of #7935

Note: See TracTickets for help on using tickets.