1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +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) { if (!$success) {
error( error(
$config['error']['captcha'] "{$config['error']['captcha']}
. '<script>if (actually_load_captcha !== undefined) actually_load_captcha("' <script>
. $config['captcha']['provider_get'] if (actually_load_captcha !== undefined)
.'", "' actually_load_captcha(
. $config['captcha']['extra'] \"{$config['captcha']['provider_get']}\",
. '");</script>' \"{$config['captcha']['extra']}\"
);
</script>"
); );
} }
} }