forked from misterdai/cfbackport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
96 lines (77 loc) · 2.88 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
__ _____ ____ ____ __ __ _ ____ ___ ____ ______
/ ] | \ / | / ] |/ ] \ / \| \| |
/ /| __| o ) o | / /| ' /| o ) | D ) |
/ / | |_ | | |/ / | \| _/| O | /|_| |_|
/ \_| _]| O | _ / \_| \ | | | \ | |
\ | | | | | \ | . | | | | . \ | |
\____|__| |_____|__|__|\____|__|\_|__| \___/|__|\_| |__|
Author: David "Mister Dai" Boyer
Website: http://misterdai.wordpress.com
Version: 0.8
Contributors: Henry Ho, David Epler
----------------------
| Description |
----------------------
This project aims to make at least some functions from newer versions of Adobe
ColdFusion available in older versions. For example, SessionInvalidate() is new
to CF10 but undocumented features make it possible in at least CF8+, possibly
even CF7.
Each set of functions is wrapped within an "if" statement to make sure they
aren't loaded if the version already supports them.
----------------------
| Requirements |
----------------------
Functions should work in at least ColdFusion 8+. Where possible I've tried to
avoid using newer syntax or functions
If ColdFusion is patched with APSB11-04 or higher, ESAPI is available for
Encode and Decode functions.
APSB11-04+ installs ESAPI 1.4.4 for CF8.0.x and ESAPI 2.0_rc10 for CF9.0.0/1
CF9.0.2 already has ESAPI 2.0_rc10 installed
----------------------
| Usage |
----------------------
Include the file cfbackport.cfm where you'd like the functions to appear. Keep
in mind that if you are operating within a CFC, you'll need to include them
there to make use of them.
<cfinclude template="cfbackport.cfm" />
----------------------
| Functions |
----------------------
* Backported from CF10 for CF9 and CF8
ArraySlice
CallStackDump
CallStackGet
Canonicalize
CsrfGenerateToken
CsrfVerifyToken
DecodeForHTML (David Epler) [requires ESAPI 2.0+]
DecodeFromURL (David Epler)
EncodeForCSS (Henry Ho)
EncodeForHTML
EncodeForHTMLAttribute (Henry Ho)
EncodeForJavaScript (Henry Ho)
EncodeForURL (Henry Ho)
EncodeForXML (David Epler)
GetApplicationMetadata
HMac (David Epler)
IsClosure
QueryExecute (Henry Ho)
ReEscape
SessionInvalidate
SessionStartTime
* Backported from CF9 for CF8
throw (David Epler) [required for DecodeFromURL]
location
writeDump
ArrayContains
DirectoryList
DirectoryRename
----------------------
| Unit Tests |
----------------------
Unit tests were created with MXUnit 2.1.1
* As written (of course) CF10 passes them all
* CF9.0.x with APSB11-04+ - 13 success, 0 error, 1 failure
* Failure is due to ESAPI version difference
* CF8.0.x with APSB11-04+ - 9 success, 1 error, 4 failure
* Failure and Error is due to ESAPI version difference