diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-12 13:28:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-12 13:28:48 +0200 |
commit | 118bd7178b2be5f8a8fbcfa6af66e9e6d299b658 (patch) | |
tree | fdfd569d8447134f7f9d5b427f160e7fbf2d23f3 /app/controllers/projects/snippets_controller.rb | |
parent | f28a12a559ef5492b583f0ae5dff5dcb49c7afe1 (diff) | |
download | gitlab-ce-118bd7178b2be5f8a8fbcfa6af66e9e6d299b658.tar.gz |
Sanitize snippet file name in raw headers
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/snippets_controller.rb')
-rw-r--r-- | app/controllers/projects/snippets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/snippets_controller.rb b/app/controllers/projects/snippets_controller.rb index 9d5dd8a95cc..25c887deafa 100644 --- a/app/controllers/projects/snippets_controller.rb +++ b/app/controllers/projects/snippets_controller.rb @@ -68,7 +68,7 @@ class Projects::SnippetsController < Projects::ApplicationController @snippet.content, type: 'text/plain; charset=utf-8', disposition: 'inline', - filename: @snippet.file_name + filename: @snippet.sanitized_file_name ) end |