Fixed
Project:
CAPTCHA
Version:
2.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2022 at 10:21 UTC
Updated:
3 Nov 2026 at 01:17 UTC
Jump to comment: Most recent
Currently, we are using many bitwise operations used for different if-clauses inside the module. This isn't very intuitive and should be replaced, with more comprehensible if clauses.
Example from the install file:
if (_image_captcha_check_setup(FALSE) & $image_captcha_error_no_gdlib)
If possible, move the whole logic inside "_image_captcha_check_setup".
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyIndeed that's crazy. Never seen this (in PHP) before. Hope it wasn't just meant as
&&but I guess it's indeed bitwise...If there's a way to solve this better, we should do that. Still it's minor, but would be great, if someone could prepare a MR with a fix.
Comment #6
japerry