Show More
@@ -447,7 +447,8 class FilesController(BaseRepoController | |||
|
447 | 447 | yield data |
|
448 | 448 | |
|
449 | 449 | response.content_disposition = str('attachment; filename=%s-%s%s' \ |
|
450 |
% (repo_name, |
|
|
450 | % (safe_str(repo_name), | |
|
451 | safe_str(revision), ext)) | |
|
451 | 452 | response.content_type = str(content_type) |
|
452 | 453 | return get_chunked_archive(archive) |
|
453 | 454 |
@@ -1734,7 +1734,7 class CacheInvalidation(Base, BaseModel) | |||
|
1734 | 1734 | for inv_obj in inv_objs: |
|
1735 | 1735 | inv_obj.cache_active = False |
|
1736 | 1736 | log.debug('marking %s key for invalidation based on key=%s,repo_name=%s' |
|
1737 | % (inv_obj, key, repo_name)) | |
|
1737 | % (inv_obj, key, safe_str(repo_name))) | |
|
1738 | 1738 | invalidated_keys.append(inv_obj.cache_key) |
|
1739 | 1739 | Session().add(inv_obj) |
|
1740 | 1740 | Session().commit() |
General Comments 0
You need to be logged in to leave comments.
Login now