Skip to content
Snippets Groups Projects
Commit 40127071 authored by Dan Chadwick's avatar Dan Chadwick Committed by Szczepan Musial
Browse files

Issue #3210110 by DanChadwick: Logging a spam attempt triggers Warning:...

Issue #3210110 by DanChadwick: Logging a spam attempt triggers Warning: htmlspecialchars() expects parameter 1 to be string, array given in Drupal\Component\Utility\Html::escape()
parent 82b58a41
No related branches found
No related tags found
No related merge requests found
......@@ -107,11 +107,11 @@ function spamicide_validate(array $form, FormStateInterface &$form_state) {
$spamicide_settings->set('spamicide_counter', $counter);
$spamicide_settings->save();
\Drupal::logger('spamicide')->notice(
t('%form_id post blocked by Spamicide module: their IP address is "%ipaddress".',
[
'%form_id' => $form['form_id'],
'%ipaddress' => Drupal::request()->getClientIp(),
])
'%form_id post blocked by Spamicide module: their IP address is "%ipaddress".',
[
'%form_id' => $form['#form_id'],
'%ipaddress' => Drupal::request()->getClientIp(),
]
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment