Fix struct-to-string comparison in uploadSavedPage.cfm
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3df4659830
commit
093a3b8bce
1 changed files with 8 additions and 4 deletions
|
|
@ -88,33 +88,37 @@
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
<!--- Priority: index.html at top level, then any index.html, then top-level html, then first found --->
|
<!--- Priority: index.html at top level, then any index.html, then top-level html, then first found --->
|
||||||
<cfset htmlFile = "">
|
<cfset foundFile = false>
|
||||||
|
<cfset htmlFile = {}>
|
||||||
<cfloop array="#htmlFiles#" index="hf">
|
<cfloop array="#htmlFiles#" index="hf">
|
||||||
<cfif lCase(hf.name) EQ "index.html" AND hf.depth EQ 0>
|
<cfif lCase(hf.name) EQ "index.html" AND hf.depth EQ 0>
|
||||||
<cfset htmlFile = hf>
|
<cfset htmlFile = hf>
|
||||||
|
<cfset foundFile = true>
|
||||||
<cfbreak>
|
<cfbreak>
|
||||||
</cfif>
|
</cfif>
|
||||||
</cfloop>
|
</cfloop>
|
||||||
|
|
||||||
<cfif htmlFile EQ "">
|
<cfif NOT foundFile>
|
||||||
<cfloop array="#htmlFiles#" index="hf">
|
<cfloop array="#htmlFiles#" index="hf">
|
||||||
<cfif lCase(hf.name) EQ "index.html">
|
<cfif lCase(hf.name) EQ "index.html">
|
||||||
<cfset htmlFile = hf>
|
<cfset htmlFile = hf>
|
||||||
|
<cfset foundFile = true>
|
||||||
<cfbreak>
|
<cfbreak>
|
||||||
</cfif>
|
</cfif>
|
||||||
</cfloop>
|
</cfloop>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
<cfif htmlFile EQ "">
|
<cfif NOT foundFile>
|
||||||
<cfloop array="#htmlFiles#" index="hf">
|
<cfloop array="#htmlFiles#" index="hf">
|
||||||
<cfif hf.depth EQ 0>
|
<cfif hf.depth EQ 0>
|
||||||
<cfset htmlFile = hf>
|
<cfset htmlFile = hf>
|
||||||
|
<cfset foundFile = true>
|
||||||
<cfbreak>
|
<cfbreak>
|
||||||
</cfif>
|
</cfif>
|
||||||
</cfloop>
|
</cfloop>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
<cfif htmlFile EQ "">
|
<cfif NOT foundFile>
|
||||||
<cfset htmlFile = htmlFiles[1]>
|
<cfset htmlFile = htmlFiles[1]>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue