CURRENT PROJECTS
loading
<cffunction name="onRequestEnd" output="Yes"><cfsetting enablecfoutputonly="Yes"> <!--- forceful strip of whitespaces from CFMX Java output buffer - idea thanks to Dmitry Namiot ---> <cfset pageContent = getPageContext().getOut().getString()> <cfset getPageContext().getOut().clearBuffer()> <!--- AJAX whitespace stripping ---> <cfset pageContent = REReplace(pageContent, "^[[:space:]]+\*\*\*\*\/", " ****/", "all" )> <cfset pageContent = REReplace(pageContent, "\*\/[[:space:]]+$", "*/", "all" )> <cfset pageContent = REReplace(pageContent, "^[[:space:]]+<", "<", "all" )> <cfset pageContent = REReplace(pageContent, ">[[:space:]]+$", ">", "all" )> <!--- capture pure whitespace pages for those CFLOCATION tags in the middle of a logic block ---> <cfset pageContent = REReplace(pageContent, "^[[:space:]]+$", "", "all" )> <cfset writeOutput(pageContent)> <cfset getPageContext().getOut().flush()> <cfsetting enablecfoutputonly="No"></cffunction>