Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-09-26 19:05:19 +0300
committerDouwe Maan <douwe@selenight.nl>2017-09-26 19:05:19 +0300
commit5adae3d85b11dcaaab0b16e198051c9c2a9885cd (patch)
tree68e1830b29991bbc5e1e06d9d7a7b7848266842a /app/controllers/application_controller.rb
parente44127990413af5d254e69ff94d00625104d0393 (diff)
Encode Page-Title header as ISO-8859-1
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 02c46e551f6..771c6f3034a 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -339,6 +339,7 @@ class ApplicationController < ActionController::Base
end
def set_page_title_header
- response.headers['Page-Title'] = page_title('GitLab')
+ # Per https://tools.ietf.org/html/rfc5987, headers need to be ISO-8859-1, not UTF-8
+ response.headers['Page-Title'] = page_title('GitLab').encode('ISO-8859-1')
end
end