Skip to content

Commit 8249201

Browse files
authored
COLDBOX-1289 - Resolve - Ensure Windows OS delimiters are accounted for (#593)
1 parent cc1bc78 commit 8249201

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

system/web/Renderer.cfc

+4-4
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,11 @@ component
921921

922922
// Check for directory helper convention first
923923
var dPath = getDirectoryFromPath( results.viewPath );
924-
if ( fileExists( expandPath( dPath & listLast( dPath, "/" ) & "Helper.cfm" ) ) ) {
925-
results.viewHelperPath.append( dPath & listLast( dPath, "/" ) & "Helper.cfm" );
924+
if ( fileExists( expandPath( dPath & listLast( dPath, "\/" ) & "Helper.cfm" ) ) ) {
925+
results.viewHelperPath.append( dPath & listLast( dPath, "\/" ) & "Helper.cfm" );
926926
}
927-
if ( fileExists( expandPath( dPath & listLast( dPath, "/" ) & "Helper.bxm" ) ) ) {
928-
results.viewHelperPath.append( dPath & listLast( dPath, "/" ) & "Helper.bxm" );
927+
if ( fileExists( expandPath( dPath & listLast( dPath, "\/" ) & "Helper.bxm" ) ) ) {
928+
results.viewHelperPath.append( dPath & listLast( dPath, "\/" ) & "Helper.bxm" );
929929
}
930930

931931
// Check for view helper convention second

0 commit comments

Comments
 (0)