From 16f3cce65d6460df39c7cdd53ab3839ceba4ca11 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Mon, 2 Feb 2015 00:22:37 +0000 Subject: Missing user-agent-string causes error --- includes/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/session.php b/includes/session.php index 3ffe9760d3..7fa7ea2f4b 100644 --- a/includes/session.php +++ b/includes/session.php @@ -333,7 +333,7 @@ case 'unknown': case '': WT_DB::prepare( "INSERT INTO `##site_access_rule` (ip_address_start, ip_address_end, user_agent_pattern, comment) VALUES (IFNULL(INET_ATON(?), 0), IFNULL(INET_ATON(?), 4294967295), ?, '')" - )->execute(array($WT_REQUEST->getClientIp(), $WT_REQUEST->getClientIp(), WT_Filter::server('HTTP_USER_AGENT'))); + )->execute(array($WT_REQUEST->getClientIp(), $WT_REQUEST->getClientIp(), WT_Filter::server('HTTP_USER_AGENT', null, ''))); $SEARCH_SPIDER = true; break; } -- cgit v1.3