Changeset 13941
- Timestamp:
- 06/14/08 17:35:49 (5 years ago)
- Location:
- lang/perl/Sledge-Plugin-Captcha/trunk
- Files:
-
- 3 modified
-
Changes (modified) (1 diff)
-
lib/Sledge/Plugin/Captcha.pm (modified) (2 diffs)
-
t/01.base.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Sledge-Plugin-Captcha/trunk/Changes
r13939 r13941 1 1 Revision history for Sledge-Plugin-Captcha 2 3 0.0.2 Thu Mar 15 10:52:08 JST 2007 4 oops. fixed invalid Content-Type header. 5 jpeg => image/jpeg. 2 6 3 7 0.0.1 Fri Jan 5 10:46:27 2007 -
lang/perl/Sledge-Plugin-Captcha/trunk/lib/Sledge/Plugin/Captcha.pm
r13940 r13941 3 3 use warnings; 4 4 use Carp; 5 our $VERSION = 0.0 1;5 our $VERSION = 0.02; 6 6 use GD::SecurityImage; 7 7 … … 45 45 = $captcha->out( %{ $self->create_config->captcha->{out} } ); 46 46 $self->session->param( $self->create_config->captcha->{session_name} => $captcha_string ); 47 $self->show_image( $image => $mime_type);47 $self->show_image( $image => "image/$mime_type" ); 48 48 }; 49 49 } -
lang/perl/Sledge-Plugin-Captcha/trunk/t/01.base.t
r13940 r13941 21 21 my $page = t::TestPages->new; 22 22 $page->dispatch('foo'); 23 like($page->output, qr{Content-Type: jpeg}, 'image output');23 like($page->output, qr{Content-Type: image/jpeg}, 'image output'); 24 24 like($page->output, qr{JFIF}, 'image'); 25 25 };
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)