From: <var...@us...> - 2011-05-20 10:41:06
|
Revision: 8084 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8084&view=rev Author: vargenau Date: 2011-05-20 10:40:59 +0000 (Fri, 20 May 2011) Log Message: ----------- Tell Google (and others) to ignore e.g. MyPage?action=diff Modified Paths: -------------- trunk/lib/display.php Modified: trunk/lib/display.php =================================================================== --- trunk/lib/display.php 2011-05-20 09:29:40 UTC (rev 8083) +++ trunk/lib/display.php 2011-05-20 10:40:59 UTC (rev 8084) @@ -220,7 +220,14 @@ global $robots; $pagename = $request->getArg('pagename'); $version = $request->getArg('version'); + $action = $request->getArg('action'); $page = $request->getPage(); + + /* Tell Google (and others) to ignore e.g. MyPage?action=diff */ + if ($action) { + $robots = "noindex,nofollow"; + $toks['ROBOTS_META'] = $robots; + } if ($version) { $revision = $page->getRevision($version); if (!$revision) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |