X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Fstats.php;fp=www%2Fecrire%2Fpublic%2Fstats.php;h=47574b806e66c39c4c51025eeff54e6ee41b7bf7;hp=d0f065260a3fbf327881e5779a0887668747b594;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/public/stats.php b/www/ecrire/public/stats.php index d0f0652..47574b8 100644 --- a/www/ecrire/public/stats.php +++ b/www/ecrire/public/stats.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -18,8 +18,8 @@ function public_stats_dist() { if (isset($_SERVER['HTTP_REFERER'])) $referer = $_SERVER['HTTP_REFERER']; else if (isset($GLOBALS["HTTP_SERVER_VARS"]["HTTP_REFERER"])) $referer = $GLOBALS["HTTP_SERVER_VARS"]["HTTP_REFERER"]; - // Rejet des robots (qui sont pourtant des humains comme les autres) - if (_IS_BOT) return; + // Rejeter pirates et robots (qui sont pourtant des humains comme les autres) + if (_IS_BOT OR strlen($referer)!=strcspn($referer,'<>"\'')) return; // Ne pas tenir compte des tentatives de spam des forums if ($_SERVER['REQUEST_METHOD'] !== 'GET'