My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 176 attachment: escape-html.patch (1.6 KB)

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
Index: framework/EXTTestResult.cfc
===================================================================
--- framework/EXTTestResult.cfc (revision 1301)
+++ framework/EXTTestResult.cfc (working copy)
@@ -246,12 +246,12 @@
<cfreturn strJSON>
</cffunction>

- <cffunction name="isProblem" output="false" access="private" returntype="boolean" hint="">
+ <cffunction name="isProblem" output="false" access="private" returntype="boolean" hint="">
<cfargument name="result" type="struct" required="true"/>
<cfif reFindNoCase("fail|error",result.TestStatus)>
<cfreturn true>
</cfif>
- <cfreturn false>
+ <cfreturn false>
</cffunction>

<cffunction name="addErrorJS" output="false" access="private" returntype="string">
@@ -262,12 +262,12 @@
<cfif isSimpleValue(error)>
<cfreturn "">
<cfelse>
- <cfset qtipTrace = "<b>#error.message#: #error.detail#</b><br><br>">
+ <cfset qtipTrace = "<b>#htmlEditFormat(error.message)#: #htmlEditFormat(error.detail)#</b><br><br>">
<cfloop from="1" to="#ArrayLen(error.TagContext)#" index="t">
<cfset qtipTrace = qtipTrace & "<li>" & "#error.TagContext[t].Template# : #error.TagContext[t].Line#" & "</li>">
</cfloop>
<cfset qtipTrace = "<ol>" & qtipTrace & "</ol>">
- <cfset returnStr = '<span style="font-weight:bold" ext:qtip="#qtipTrace#">#error.message#: #error.detail#</span>'>
+ <cfset returnStr = '<span style="font-weight:bold" ext:qtip="#htmlEditFormat(qtipTrace)#">#htmlEditFormat(error.message)#: #htmlEditFormat(error.detail)#</span>'>
</cfif>
<cfreturn jsStringFormat(returnStr)>
</cffunction>
Powered by Google Project Hosting