explicitly to_s the tag description before sending to CGI.escape
fixes a problem with tags with no description, raised in issue 50
This commit is contained in:
parent
5e357f5684
commit
04218c8f6c
|
@ -79,7 +79,7 @@ class HomeController < ApplicationController
|
|||
|
||||
@rss_link = "<link rel=\"alternate\" type=\"application/rss+xml\" " <<
|
||||
"title=\"RSS 2.0 - Tagged #{CGI.escape(@tag.tag)} " <<
|
||||
"(#{CGI.escape(@tag.description)})\" href=\"/t/" +
|
||||
"(#{CGI.escape(@tag.description.to_s)})\" href=\"/t/" +
|
||||
"#{CGI.escape(@tag.tag)}.rss\" />"
|
||||
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Reference in a new issue