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;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to