summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-02-02 00:22:37 +0000
committerGreg Roach <fisharebest@gmail.com>2015-02-02 00:22:37 +0000
commit16f3cce65d6460df39c7cdd53ab3839ceba4ca11 (patch)
tree3f6e6b9b5b70c39e74ea2e972269d59eb33c3992
parentcce0876879e1a7125d295440048c2d09d0735fbd (diff)
downloadwebtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.tar.gz
webtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.tar.bz2
webtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.zip
Missing user-agent-string causes error
-rw-r--r--includes/session.php2
1 files changed, 1 insertions, 1 deletions
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;
}