diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-02 00:22:37 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-02 00:22:37 +0000 |
| commit | 16f3cce65d6460df39c7cdd53ab3839ceba4ca11 (patch) | |
| tree | 3f6e6b9b5b70c39e74ea2e972269d59eb33c3992 | |
| parent | cce0876879e1a7125d295440048c2d09d0735fbd (diff) | |
| download | webtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.tar.gz webtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.tar.bz2 webtrees-16f3cce65d6460df39c7cdd53ab3839ceba4ca11.zip | |
Missing user-agent-string causes error
| -rw-r--r-- | includes/session.php | 2 |
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; } |
