Skip to content

Commit

Permalink
FC-2926 Railo S3 path issue with special characters ;added square bra…
Browse files Browse the repository at this point in the history
…ckets and commas.
  • Loading branch information
kenbkoo committed Dec 19, 2014
1 parent 87c622f commit f87bf36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cdn/s3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@
<cfset fullpath = arguments.config.pathPrefix & fullpath />

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

<cfset fullpath = replacelist(urlencodedformat(fullpath),"%2F,%20,%2D,%2E,%5F,%27,%28,%29,%26,%5B,%5D","/, ,-,.,_,',(,),&,[,]")>
<cfset fullpath = replaceNoCase(fullpath, "%2C", ",")>

<cfset fullpath = "s3://#arguments.config.accessKeyId#:#arguments.config.awsSecretKey#@#arguments.config.bucket##fullpath#" />

<cfreturn fullpath />
Expand Down

0 comments on commit f87bf36

Please sign in to comment.