Skip to content

Conversation

mbocevski
Copy link

S3 throws an access denied when URL has doubleslashes in it, and having a leading slash in templates causes an access denied error. For example: https://mydjangosite.com//jquery/ajax.js would not work.

This fix removes a leading slash from the path and can be expanded to remove all double-slashes, however I feel that removing the leading slash is enough for most common scenarios.

@mbocevski
Copy link
Author

@jschneier can you check this one out whenever you have a chance? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant