Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:framework-one/fw1 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed May 15, 2015
2 parents 57702e5 + 6012922 commit fe93baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/one.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ component {
if ( !len( routeRegEx.target ) || right( routeRegEx.target, 1) != '/' ) routeRegEx.target &= '/';
// walk for self defined (regex) and :var - replace :var with ([^/]*) in route and back reference in target:
var n = 1;
var placeholders = rematch( '(:[^/]+)|(\([^\)]+)', routeRegEx.pattern );
var placeholders = rematch( '(:[-_a-zA-Z0-9]+)|(\([^\)]+)', routeRegEx.pattern );
for ( var placeholder in placeholders ) {
if ( left( placeholder, 1 ) == ':') {
routeRegEx.pattern = replace( routeRegEx.pattern, placeholder, '([^/]*)' );
Expand Down Expand Up @@ -1908,7 +1908,7 @@ component {
var omitIndex = false;
var optionalOmit = false;
if ( path == 'useCgiScriptName' ) {
path = request._fw1.cgiScriptName;
path = getContextRoot() & request._fw1.cgiScriptName;
optionalOmit = true;
} else if ( path == 'useRequestURI' ) {
path = getPageContext().getRequest().getRequestURI();
Expand Down

0 comments on commit fe93baf

Please sign in to comment.