From: Tom Hughes Date: Sat, 14 Nov 2009 16:15:26 +0000 (+0000) Subject: Make rel=nofollow actually work - when in doubt trust the source as X-Git-Tag: live~6478 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/17445a44da9aaeb24e136c5fc6fc3634e6f10539?ds=sidebyside Make rel=nofollow actually work - when in doubt trust the source as the rails documentation speaks with forked tongue. --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9d2ae0071..2eebec170 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ module ApplicationHelper def htmlize(text) - return sanitize(auto_link(simple_format(text), :link => :urls, :href_options => { :rel => "nofollow" })) + return sanitize(auto_link(simple_format(text), :link => :urls, :html => { :rel => "nofollow" })) end def html_escape_unicode(text)