File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -361,15 +361,16 @@ component serializable="false" accessors="true" {
361361 * Autowire the proxy on creation. This references the super class only, we use cgi information to get the actual proxy component path
362362 */
363363 private function selfAutoWire (){
364- var scriptName = CGI .SCRIPT_NAME ;
364+ var scriptName = CGI .SCRIPT_NAME
365+ var extension = listLast ( scriptName , " ." )
365366
366- // Only process this logic if hitting a remote proxy CFC directly and if ColdBox exists.
367+ // Only process cfc or bx extensions and if ColdBox is available, else ignore and let the engine handle it as a normal cfc request
367368 if (
368- len ( scriptName ) < 5 || ! reFindNoCase ( " (cfc|bx) " , right ( scriptName , 4 ) ) || ! verifyColdBox (
369- throwOnNotExist = false
370- )
369+ ( extension neq " cfc " && extension neq " bx " )
370+ ||
371+ ! verifyColdBox ( throwOnNotExist = false )
371372 ) {
372- return ;
373+ return
373374 }
374375
375376 // Find the path of the proxy component being called
You can’t perform that action at this time.
0 commit comments