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:
parent
650ef8bcc2
commit
8120c42440
14
post.php
14
post.php
@ -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>"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user