Skip to content

Commit f02912c

Browse files
authored
Merge pull request #616 from michaelborn/patch-1
Fix ColdboxProxy when context root is empty string
2 parents 23008eb + 2283577 commit f02912c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/remote/ColdboxProxy.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ component serializable="false" accessors="true" {
374374

375375
// Find the path of the proxy component being called
376376
// replace the context root at the beginning of the script
377-
var componentPath = replaceNoCase( scriptName, getContextRoot(), "", "one" );
377+
var componentPath = len( getContextRoot ) ? replaceNoCase( scriptName, getContextRoot(), "", "one" ) : scriptName;
378378
// remove the extension, if any
379379
componentPath = reReplaceNoCase( componentPath, "\..+$", "", "one" );
380380
// replace all slashes with dots

0 commit comments

Comments
 (0)