SVN: toys/rsget.pl/RSGet/CaptchaImage.pm

sparky sparky at pld-linux.org
Sat May 29 22:41:48 CEST 2010


Author: sparky
Date: Sat May 29 22:41:47 2010
New Revision: 11493

Modified:
   toys/rsget.pl/RSGet/CaptchaImage.pm
Log:
- die if captcha image cannot be opened


Modified: toys/rsget.pl/RSGet/CaptchaImage.pm
==============================================================================
--- toys/rsget.pl/RSGet/CaptchaImage.pm	(original)
+++ toys/rsget.pl/RSGet/CaptchaImage.pm	Sat May 29 22:41:47 2010
@@ -19,6 +19,7 @@
 	require GD;
 	GD::Image->trueColor( 1 );
 	my $img = GD::Image->new( $$imgdata );
+	die "Cannot open captcha image\n" unless $img;
 
 	my $w = $img->width;
 	my $h = $img->height;


More information about the pld-cvs-commit mailing list