Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a fix for LDEV-2532 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added a fix for LDEV-2532
cfmitrah committed Dec 26, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 49a03c5d014b327804647906604437e7db7ba015
13 changes: 13 additions & 0 deletions source/cfml/plugins/overview.cfm
Original file line number Diff line number Diff line change
@@ -23,6 +23,19 @@
*
--->

<cfif structKeyExists(url, "delfile")>
<cfset var tempFilePath = getLogPath(file=url.delfile) />
<cftry>
<cffile action="delete" file="#tempFilePath#" />
<cflocation url="#cgi.http_referer#">
<cfoutput><p class="message">#replace(arguments.lang.logfilehasbeendeleted, "%1", listLast(tempFilePath, '/\'))#</p></cfoutput>
<cfcatch>
<p class="error">The file could not be deleted; instead we will erase the contents:</p>
<cffile action="write" file="#tempFilePath#" output="" />
<cfoutput><p class="message">#replace(arguments.lang.logfilehasbeencleared, "%1", listLast(tempFilePath, '/\'))#</p></cfoutput>
</cfcatch>
</cftry>
</cfif>

<cfset thispageaction = rereplace(action('overview'), "^[[:space:]]+", "") />