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
|
# akismet breaks if there's no referrer in the environment; so if there
|
||||||
# isn't, supply one manually
|
# isn't, supply one manually
|
||||||
if(!isset($_SERVER['HTTP_REFERER'])) {
|
if(!isset($_SERVER['HTTP_REFERER'])) {
|
||||||
$comment['referrer'] = '';
|
$comment['referrer'] = 'none';
|
||||||
log_warning("comment", "User '{$user->name}' commented with no referrer: $text");
|
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(
|
$akismet = new Akismet(
|
||||||
$_SERVER['SERVER_NAME'],
|
$_SERVER['SERVER_NAME'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user