From cf3733d338ec7a36b68bb9c0dc30ce7a502cff2c Mon Sep 17 00:00:00 2001 From: haneul Date: Wed, 2 Dec 2009 09:38:42 +0000 Subject: [PATCH] #18521466 : add an exception for bots git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7003 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/context/Context.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 28c9fca0b..d4350b2af 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -360,6 +360,7 @@ **/ function checkSSO() { // pass if it's not GET request or XE is not yet installed + if(stristr($_SERVER["HTTP_USER_AGENT"], "bot") != FALSE) return true; if(Context::getRequestMethod()!='GET' || !Context::isInstalled() || in_array(Context::get('act'),array('rss','atom'))) return true; // pass if default URL is not set