|
From: | noreply |
Subject: | [myexperiment-hackers] [2283] trunk/vendor/plugins/white_list/lib/white_list_helper.rb: added rel= "nofollow" to user contributed links |
Date: | Sat, 10 Oct 2009 11:41:45 -0400 (EDT) |
added rel="nofollow" to user contributed links
--- trunk/vendor/plugins/white_list/lib/white_list_helper.rb 2009-10-09 16:17:54 UTC (rev 2282)
+++ trunk/vendor/plugins/white_list/lib/white_list_helper.rb 2009-10-10 15:41:44 UTC (rev 2283)
@@ -71,6 +71,7 @@
node.attributes[attr_name] = value
end
end if node.attributes
+ node.attributes['rel'] = 'nofollow' if node.name == 'a' and node.attributes != nil
if tags.include?(node.name)
bad = nil
node
[Prev in Thread] | Current Thread | [Next in Thread] |