Skip to content

Commit 7a71d90

Browse files
authored
Make sure Coldbox is a true null for Lucee's empty string behavior
1 parent 91a03a4 commit 7a71d90

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

models/SentryService.cfc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ component accessors=true singleton {
6161
* Constructor
6262
*/
6363
function init( struct settings = {} ){
64+
// make sure coldbox is a true null for Lucee
65+
variables.coldbox = javacast( "null", 0 );
6466
setSettings( arguments.settings );
6567
// If we have settings passed to the init, this is likely not
6668
// in WireBox context so just configure now
6769
if ( arguments.settings.count() ) {
6870
configure();
6971
}
72+
7073
setModuleConfig( { version : "2.0.0" } );
7174

7275
return this;

0 commit comments

Comments
 (0)