Commit 5adae3d8 authored by Douwe Maan's avatar Douwe Maan

Encode Page-Title header as ISO-8859-1

parent e4412799
...@@ -339,6 +339,7 @@ class ApplicationController < ActionController::Base ...@@ -339,6 +339,7 @@ class ApplicationController < ActionController::Base
end end
def set_page_title_header 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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment