Skip to content

Commit 3d8d551

Browse files
committed
Regenerate CAPTCHA on error.
1 parent ae8c4fa commit 3d8d551

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

controller/main.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private function table($name)
127127
if($name == 'pastebin')
128128
{
129129
return $this->pastebin_table;
130-
}
130+
}
131131
}
132132

133133
/**
@@ -271,6 +271,10 @@ private function display_pb()
271271
{
272272
$error[] = $user->lang['CONFIRM_CODE_WRONG'];
273273
}
274+
else if (!empty($error))
275+
{
276+
$captcha->new_attempt();
277+
}
274278
else
275279
{
276280
$captcha->garbage_collect($this::CONFIRM_PASTEBIN);

0 commit comments

Comments
 (0)