]> git.openstreetmap.org Git - rails.git/blob - app/helpers/title_helper.rb
Strip illegal characters from member roles in AMF uploads, part 2
[rails.git] / app / helpers / title_helper.rb
1 module TitleHelper
2   def set_title(title = false)
3     if title
4       @title = title.gsub("<bdi>", "\u202a").gsub("</bdi>", "\u202c")
5       response.headers["X-Page-Title"] = t('layouts.project_name.title') + ' | ' + @title
6     else
7       @title = title
8       response.headers["X-Page-Title"] = t('layouts.project_name.title')
9     end
10   end
11 end