Skip to content

Commit

Permalink
FC-3086 Signed URL for private S3 file download link doesn't work whe…
Browse files Browse the repository at this point in the history
…n there are whitespaces in filename
  • Loading branch information
kenbkoo committed Sep 7, 2016
1 parent e0179b4 commit 9177920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cdn/s3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
<cfset urlpath = "#arguments.config.pathPrefix##urlpath#" />

<!--- URL encode the filename --->
<cfset urlpath = replacelist(urlencodedformat(urlpath),"%2F,%20,%2D,%2E,%5F,%27","/, ,-,.,_,'")>
<cfset urlpath = replacelist(urlencodedformat(urlpath),"%2F,%2B,%2D,%2E,%5F,%27","/, ,-,.,_,'")>

<cfif structkeyexists(arguments.config,"security") and arguments.config.security eq "private">
<cfset epochTime = DateDiff("s", DateConvert("utc2Local", "January 1 1970 00:00"), now()) + arguments.config.urlExpiry />
Expand Down

0 comments on commit 9177920

Please sign in to comment.