Opened 13 years ago
Closed 9 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 13 years ago by
Owner: | changed from anonymous to James Burke |
---|
comment:2 Changed 12 years ago by
Milestone: | tbd → future |
---|
comment:3 Changed 9 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
it seems nobody has taken on this task in 3 years. feel free to comment or open a new ticket.