myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2283] trunk/vendor/plugins/white_list/lib/white_


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)

Revision
2283
Author
dgc
Date
2009-10-10 11:41:44 -0400 (Sat, 10 Oct 2009)

Log Message

added rel="nofollow" to user contributed links

Modified Paths

Diff

Modified: trunk/vendor/plugins/white_list/lib/white_list_helper.rb (2282 => 2283)


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]