changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / linking / a_nofollow.php
1 <?php
2 /*
3    <a href="..." rel="NOFOLLOW"> prevents additional page rank bonus
4    for linked pages. This is a countermeasure against link spam. (See
5    doc/LinkSpammers)
6    
7    This is a dumb plugin, because it adds this to ALL links. Use the
8    "new_nofollow" version which appends this flag only to FRESH links.
9 */
10
11 $ewiki_plugins["link_final"][] = "ewiki_linking_all_urls_nofollow";
12
13 function ewiki_linking_all_urls_nofollow(&$str, $type, $href, $title, &$states) {
14    if (strpos($href, "://")) {
15       $states["xhtml"]["rel"] = "NOFOLLOW";
16    }
17 }
18
19 ?>