Browse Source

espace stupide qui empechait de reconnaitre les bots (report de http://zone.spip.org/trac/spip-zone/changeset/33871 )

svn/root/tags/spip-3.0.0-alpha1
Fil 13 years ago
parent
commit
cb9b4467f2
  1. 4
      config/ecran_securite.php

4
config/ecran_securite.php

@ -5,7 +5,7 @@
* ------------------
*/
define('_ECRAN_SECURITE', '0.9.1'); // 4 dec 2009
define('_ECRAN_SECURITE', '0.9.2'); // 20 dec 2009
/*
* Documentation : http://www.spip.net/fr_article4200.html
@ -24,7 +24,7 @@ if (isset($_GET['test_ecran_securite']))
if (!defined('_IS_BOT'))
define('_IS_BOT',
isset($_SERVER['HTTP_USER_AGENT'])
AND preg_match(', bot|slurp|crawler|spider|webvac|yandex,i',
AND preg_match(',bot|slurp|crawler|spider|webvac|yandex,i',
$_SERVER['HTTP_USER_AGENT'])
);

Loading…
Cancel
Save