Skip to content

Commit

Permalink
COLDBOX-1289 - Resolve - Ensure Windows OS delimiters are accounted for
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Aug 26, 2024
1 parent cc1bc78 commit 0394725
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/web/Renderer.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,11 @@ component

// Check for directory helper convention first
var dPath = getDirectoryFromPath( results.viewPath );
if ( fileExists( expandPath( dPath & listLast( dPath, "/" ) & "Helper.cfm" ) ) ) {
results.viewHelperPath.append( dPath & listLast( dPath, "/" ) & "Helper.cfm" );
if ( fileExists( expandPath( dPath & listLast( dPath, "\/" ) & "Helper.cfm" ) ) ) {
results.viewHelperPath.append( dPath & listLast( dPath, "\/" ) & "Helper.cfm" );
}
if ( fileExists( expandPath( dPath & listLast( dPath, "/" ) & "Helper.bxm" ) ) ) {
results.viewHelperPath.append( dPath & listLast( dPath, "/" ) & "Helper.bxm" );
if ( fileExists( expandPath( dPath & listLast( dPath, "\/" ) & "Helper.bxm" ) ) ) {
results.viewHelperPath.append( dPath & listLast( dPath, "\/" ) & "Helper.bxm" );
}

// Check for view helper convention second
Expand Down

0 comments on commit 0394725

Please sign in to comment.