Created
March 13, 2026 18:49
-
-
Save trycf/4d8455bf39f24d4413449e4fa5ea7d18 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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
| <cfscript> | |
| plain = "adsads"; | |
| plain_bad = "%26lt; %26lt; %2526lt%253B %2526lt%253B %2526lt%253B"; | |
| dump(Canonicalize(plain,true,true)); | |
| // checking for malicious string | |
| try { | |
| dump(Canonicalize(plain_bad,true,false)); | |
| } catch (Any e) { | |
| dump(var = e, label = "exception message"); | |
| } | |
| </cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment