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:
joshua stein 2013-03-29 16:20:52 -05:00
parent 5e357f5684
commit 04218c8f6c

View file

@ -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|