Bug #25930
ErrorCheck "captcha" PHP error
| Status: | Resolved | Start date: | 2011-04-13 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Reinhard Führicht | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Stable v1.0 | |||
| Votes: | 0 |
Description
The error check "captcha" checks
if ($captchaStr != $gp[$name] || empty(trim($gp[$name]))) {
Problem:
empty() cannot take return values of functions as argument.
Solution:
Replace empty() with strlen() or something similar.
Associated revisions
Replaced empty() with strlen() in ErrorCheck_Captcha (fixes #25930)
Replaced empty() with strlen() in ErrorCheck_Captcha (fixes #25930)
History
Updated by Reinhard Führicht about 2 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r46481.