1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 04:13:49 +01:00

Format injected javascript on failed native captcha

This commit is contained in:
Zankaria 2024-04-01 19:46:04 +02:00 committed by Zankaria
parent 650ef8bcc2
commit 8120c42440

View File

@ -599,12 +599,14 @@ if (isset($_POST['delete'])) {
if (!$success) {
error(
$config['error']['captcha']
. '<script>if (actually_load_captcha !== undefined) actually_load_captcha("'
. $config['captcha']['provider_get']
.'", "'
. $config['captcha']['extra']
. '");</script>'
"{$config['error']['captcha']}
<script>
if (actually_load_captcha !== undefined)
actually_load_captcha(
\"{$config['captcha']['provider_get']}\",
\"{$config['captcha']['extra']}\"
);
</script>"
);
}
}