Skip to content

Commit

Permalink
FC-2926 Railo S3 path issue with special characters ;exclamation and …
Browse files Browse the repository at this point in the history
…percentage marks added.
  • Loading branch information
kenbkoo committed Jan 5, 2015
1 parent f87bf36 commit 9943e5c
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 @@ -225,7 +225,7 @@
<cfset fullpath = arguments.config.pathPrefix & fullpath />

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

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

0 comments on commit 9943e5c

Please sign in to comment.