Skip to content

Commit

Permalink
fixed another issue where adding a format after finding a route was u…
Browse files Browse the repository at this point in the history
…pdating the application scope because the struct was not a deep copy.
  • Loading branch information
unknown authored and unknown committed Jan 26, 2012
1 parent aa04eb9 commit b212002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wheels/dispatch/request.cfm
Expand Up @@ -80,12 +80,12 @@
loc.currentRoute = application.wheels.routes[loc.i].pattern;
if (loc.currentRoute == "*") {
loc.returnValue = application.wheels.routes[loc.i];
loc.returnValue = Duplicate(application.wheels.routes[loc.i]);
break;
}
else if (arguments.path == "" && loc.currentRoute == "")
{
loc.returnValue = application.wheels.routes[loc.i];
loc.returnValue = Duplicate(application.wheels.routes[loc.i]);
break;
}
else if (ListLen(arguments.path, "/") gte ListLen(loc.currentRoute, "/") && loc.currentRoute != "")
Expand All @@ -102,7 +102,7 @@
}
if (loc.match)
{
loc.returnValue = application.wheels.routes[loc.i];
loc.returnValue = Duplicate(application.wheels.routes[loc.i]);
if (len(loc.format))
{
loc.returnValue[ReplaceList(loc.format, "[,]", "")] = $getFormatFromRequest(pathInfo=arguments.path);
Expand Down

0 comments on commit b212002

Please sign in to comment.