diff --git a/app/lib/url.rb b/app/lib/url.rb index f8d21106c..4d00db689 100644 --- a/app/lib/url.rb +++ b/app/lib/url.rb @@ -46,7 +46,7 @@ module URL # # @param tag [Tag] the tag to create the URL for def self.tag(tag, page = 1) - url(["/t/#{tag.name}", ("/page/#{page}" if page > 1)].join) + url(["/t/#{CGI.escape(tag.name)}", ("/page/#{page}" if page > 1)].join) end # Creates a user URL diff --git a/app/views/admin/tags/edit.html.erb b/app/views/admin/tags/edit.html.erb index 2f0eb7fa3..082d2aa25 100644 --- a/app/views/admin/tags/edit.html.erb +++ b/app/views/admin/tags/edit.html.erb @@ -5,7 +5,7 @@
diff --git a/app/views/articles/_single_story.html.erb b/app/views/articles/_single_story.html.erb index cf5569bb3..be8dcdc50 100644 --- a/app/views/articles/_single_story.html.erb +++ b/app/views/articles/_single_story.html.erb @@ -59,7 +59,7 @@