Skip to content

Commit

Permalink
More sensible defaults for XML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Aug 15, 2023
1 parent 36aff2f commit b564542
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/cfml/system/Bootstrap.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ This file will stay running the entire time the shell is open
name = "CommandBox CLI"
sessionmanagement = "false"
applicationTimeout = "#createTimeSpan( 999999, 0, 0, 0 )#"
mappings="#mappings#">
mappings="#mappings#"
xmlFeatures={
secure: false,
externalGeneralEntities: false,
disallowDoctypeDecl: false
}>

<Cfset systemotuput( getApplicationMetadat().xmlFeatures,1 )>

<cfscript>
FRTransService = new commandbox.system.services.FRTransService();
Expand Down Expand Up @@ -120,11 +127,11 @@ This file will stay running the entire time the shell is open
// flush console
shell.getReader().flush();
// If we installed a system module in a one-off command, we still need to nuke the wirebox metadata cache.
if( shell.getReloadshell() ) {
// Wipe out cached metadata on reload.
wirebox.getCacheBox().getCache( 'metadataCache' ).clearAll();
wirebox.getCacheBox().getCache( 'metadataCache' ).clearAll();
}
// "box" was called all by itself with no commands
Expand Down

0 comments on commit b564542

Please sign in to comment.