Revision 741
Added by thorn over 17 years ago
| tool.php | ||
|---|---|---|
| 54 | 54 |
// save text-captchas |
| 55 | 55 |
if($captcha_type == 'text') { // ct_text
|
| 56 | 56 |
$text_qa=$admin->add_slashes($_POST['text_qa']); |
| 57 |
if(strpos($text_qa, '### example ###') === FALSE) {
|
|
| 57 |
if(!preg_match('/### .*? ###/', $text_qa)) {
|
|
| 58 | 58 |
$database->query("UPDATE $table SET ct_text = '$text_qa'");
|
| 59 | 59 |
} |
| 60 | 60 |
} |
Also available in: Unified diff
fixed an issue with text-captcha (default text got saved). Changes default text.