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:
authorToon Claes <toon@gitlab.com>2017-10-20 19:44:29 +0300
committerWinnie Hellmann <winnie@gitlab.com>2017-10-20 19:44:29 +0300
commitd8d7faf68cd419cedbacd61ffa2d7ce23847e089 (patch)
tree6a5afba6e886b972e824b41dafaa6d9f61fa1dab /app/controllers/application_controller.rb
parentf3117e795d175eeaf8c689cd3065a844ee49ab0e (diff)
URI decode Page-Title header to preserve UTF-8 characters
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 967fe39256a..391a0519195 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -349,6 +349,6 @@ class ApplicationController < ActionController::Base
def set_page_title_header
# 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')
+ response.headers['Page-Title'] = URI.escape(page_title('GitLab'))
end
end