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