Skip to content

Commit

Permalink
Merge pull request #500 from matthewjones/bug-buildurl-var
Browse files Browse the repository at this point in the history
var q and a variables so that it also occurs for cases when there is …
  • Loading branch information
seancorfield authored Mar 27, 2018
2 parents 8f0681f + 9ceb099 commit a5ddba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/one.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ component {
path = pathData.path;
var omitIndex = pathData.omitIndex;
queryString = normalizeQueryString( queryString );
var q = 0;
var a = 0;
if ( queryString == '' ) {
// extract query string from action section:
var q = find( '?', action );
var a = find( '##', action );
q = find( '?', action );
a = find( '##', action );
if ( q > 0 ) {
if ( q < len( action ) ) {
queryString = right( action, len( action ) - q );
Expand Down

0 comments on commit a5ddba2

Please sign in to comment.