This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OGNL logging | |
// Use the logging classes to output messages from OGNL processing | |
// Generally used for testing script behaviour and input values | |
#log = @org.apache.commons.logging.LogFactory@getLog("com.pingidentity.ognl.logger"), | |
// log a message | |
#log.debug("Your log messages here"), | |
// log a multiline message | |
#log.debug("Send + "\r" + a + "\r" + Multiline + "\r" + "Log" + "\r" + "Entry"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when HTTP_REQUEST { | |
set coffee { 5)3;; 4(3;; 2+1-5+1;; 2|1 5|1]1;; 2\1-5/1;;_9_2;;\1_9/1} | |
set response "Coffee 3.0\n\n" | |
switch [HTTP::uri] { | |
"/coffee" { | |
foreach {mychar myrepeat} [ split $coffee {} ] { | |
if {$mychar equals ";"} { | |
append response "[format "%-15s" $cuppa]$cuppa\n" | |
unset cuppa | |
} else { |