Skip to content

Commit

Permalink
FC-3085 call sanitizeFilename for filenames in CDN lib ioUploadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
justincarter committed Sep 2, 2016
1 parent 896d100 commit a0094a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/cdn.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
<cfset application.fapi.throw(message="New file must have the same extension. Current extension is {1} and new extension is {2}.",type="uploaderror",substituteValues=[ listlast(arguments.destination,"."), listlast(cffile.serverFile,".") ]) />
</cfif>
<cfelse>
<cfset filename = normalizePath(arguments.destination & "/" & cffile.ServerFile) />
<cfset filename = normalizePath(arguments.destination & "/" & sanitizeFilename(cffile.ServerFile)) />
</cfif>

<!--- move the file if the destination location is different to the current temp location, or if the destination filename is different to the current temp filename --->
Expand Down

0 comments on commit a0094a8

Please sign in to comment.