From 776409fbd89fba6ae19591e9bc23bc658e513316 Mon Sep 17 00:00:00 2001 From: Matt Gifford Date: Mon, 22 Oct 2012 13:26:44 +0100 Subject: [PATCH] Added canonicalize method Extending the ESAPI integration by adding the canonicalize method. --- README.md | 1 + securityutil.cfc | 12 ++++++++++++ tests/CanonicalizeTest.cfc | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/CanonicalizeTest.cfc diff --git a/README.md b/README.md index ad6d611..c7dc4f1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Copy the `securityutil.cfc` file into your project and then: ```cfm + Hello #securityUtil.canonicalize(url.name)#
Hello #securityUtil.encodeHTML(url.name)#
Hello #securityUtil.scrub(url.name)#
diff --git a/securityutil.cfc b/securityutil.cfc index cf50e29..31432e8 100644 --- a/securityutil.cfc +++ b/securityutil.cfc @@ -72,6 +72,18 @@ + + + + + + + + + + + + diff --git a/tests/CanonicalizeTest.cfc b/tests/CanonicalizeTest.cfc new file mode 100644 index 0000000..dab6778 --- /dev/null +++ b/tests/CanonicalizeTest.cfc @@ -0,0 +1,12 @@ + + + + + + + + ", getSecurityUtil().canonicalize("<pete &##x2f;>"))> + + + + \ No newline at end of file