Skip to content

Commit

Permalink
FC-3086 merge: fix signed URL for private S3 file links containing sp…
Browse files Browse the repository at this point in the history
…aces
  • Loading branch information
kenbkoo authored and justincarter committed Sep 7, 2016
1 parent 3c60806 commit d77d18d
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 @@ -255,7 +255,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 d77d18d

Please sign in to comment.