same for user-agent
This commit is contained in:
parent
b8bdbd3533
commit
8ba22d8fbc
@ -408,9 +408,13 @@ class CommentList extends SimpleExtension {
|
||||
# akismet breaks if there's no referrer in the environment; so if there
|
||||
# isn't, supply one manually
|
||||
if(!isset($_SERVER['HTTP_REFERER'])) {
|
||||
$comment['referrer'] = '';
|
||||
$comment['referrer'] = 'none';
|
||||
log_warning("comment", "User '{$user->name}' commented with no referrer: $text");
|
||||
}
|
||||
if(!isset($_SERVER['HTTP_USER_AGENT'])) {
|
||||
$comment['user_agent'] = 'none';
|
||||
log_warning("comment", "User '{$user->name}' commented with no user-agent: $text");
|
||||
}
|
||||
|
||||
$akismet = new Akismet(
|
||||
$_SERVER['SERVER_NAME'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user