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