Opened 11 years ago

Closed 8 years ago

#7935 closed defect (patchwelcome)

dojo._Url broken for more than two args

Reported by: Mike Wilson Owned by: James Burke
Priority: high Milestone: future
Component: Core 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 (3)

comment:1 Changed 11 years ago by Adam Peller

Owner: changed from anonymous to James Burke

comment:2 Changed 11 years ago by dante

Milestone: tbdfuture

comment:3 Changed 8 years ago by ben hockey

Resolution: patchwelcome
Status: newclosed

it seems nobody has taken on this task in 3 years. feel free to comment or open a new ticket.

Note: See TracTickets for help on using tickets.