Skip to content

Commit

Permalink
Make sure Coldbox is a true null for Lucee's empty string behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen authored Nov 13, 2024
1 parent 91a03a4 commit 7a71d90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/SentryService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ component accessors=true singleton {
* Constructor
*/
function init( struct settings = {} ){
// make sure coldbox is a true null for Lucee
variables.coldbox = javacast( "null", 0 );
setSettings( arguments.settings );
// If we have settings passed to the init, this is likely not
// in WireBox context so just configure now
if ( arguments.settings.count() ) {
configure();
}

setModuleConfig( { version : "2.0.0" } );

return this;
Expand Down

0 comments on commit 7a71d90

Please sign in to comment.