Development

#2144 ([sfCaptchaPlugin] sometimes not display image)

You must first sign up to be able to contribute.

Ticket #2144 (new defect)

Opened 10 months ago

Last modified 7 months ago

[sfCaptchaPlugin] sometimes not display image

Reported by: antoine Assigned to: Voznyak.Nazar
Priority: minor Milestone: plugins
Component: sfCaptchaPlugin Version: 1.0.0
Keywords: sfCaptcha plugin Cc:
Qualification: Unreviewed

Description

The default parameter "alphabet" is set to 0123456789, but with this value, when the generated number value contain at least one 0, the image can't be displayed.

It is because in jpgraph_antispam.php , in the Stroke() function, there is a part of code which return false when the generated number contain one 0(number) or on O (letter).

for($i=0; $i < $n; ++$i ) {
    if( $this->iData[$i]==='0' || strtolower($this->iData[$i])==='o') {
	return false;
    }
}

Change History

12/20/07 15:56:15 changed by lking

  • owner changed from fabien to Voznyak.Nazar.
  • component changed from plugins to sfCaptchaPlugin.
  • qualification set to Unreviewed.
  • summary changed from sfCaptchaPlugin sometimes not display image to [sfCaptchaPlugin] sometimes not display image.