Skip to content

Commit

Permalink
Be more careful when prepending site_url
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 1, 2012
1 parent 3c0df27 commit b7f7a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/storage.py
Expand Up @@ -270,7 +270,7 @@ def get_metadata(self, label):
qualified=False
)
if url.startswith('/'):
url = config.get('ckan.site_url','') + url
url = config.get('ckan.site_url','').rstrip('/') + '/' + url

if not self.ofs.exists(bucket, label):
abort(404)
Expand Down

0 comments on commit b7f7a80

Please sign in to comment.