View Issue Details

IDProjectCategoryView StatusLast Update
0004397mantisbtbugtrackerpublic2004-08-29 01:26
Reportergrangeway Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version0.19.0rc1 
Summary0004397: broken captcha if ttf not available
Description

Get a broken link to captcha - captcha actually returns text:
No Truetypefont available for the CaptchaClass.

We should disable captcha support in this case.

TagsNo tags attached.

Relationships

child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

grangeway

grangeway

2004-08-25 17:37

reporter   ~0007166

Within masc_captcha there's a number of possible 'die' statements, which result in a broken image.
If captcha config is not correct, we should probably not show the captcha at all from signup_page.

On that basis, should we split make_captcha_img.php and captcha class, and create a 'captcha->check_config type command'.

signup_page would then call check_config instead of
if( ON == config_get( 'signup_use_captcha' ) && get_gd_version() > 0 ) {

grangeway

grangeway

2004-08-25 18:30

reporter   ~0007173

i can look at this - possibly if ttf don't exist, fall back to imagestring?

thraxisp

thraxisp

2004-08-27 14:19

reporter   ~0007257

I discussed splitting make_captcha_img and the class with the originator (masc) and decided it was too much work before 0.19.0. (He had tried to implement it that way).

jpgraph has the same issue with fonts as well.

grangeway

grangeway

2004-08-27 18:31

reporter   ~0007261

Fixed in CVS