Browse Source

added a ssi check for the endless loop we had

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@752 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.6
Jan Kneschke 16 years ago
parent
commit
cebb64e47b
  1. 1
      tests/docroot/www/exec-date.shtml
  2. 12
      tests/mod-ssi.t

1
tests/docroot/www/exec-date.shtml

@ -0,0 +1 @@
<!--#exec cmd="expr 1 + 1"-->

12
tests/mod-ssi.t

@ -8,7 +8,7 @@ BEGIN {
use strict;
use IO::Socket;
use Test::More tests => 3;
use Test::More tests => 4;
use LightyTest;
my $tf = LightyTest->new();
@ -25,5 +25,15 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "/ssi.shtml\n" } ];
ok($tf->handle_http($t) == 0, 'ssi - echo ');
## bug #280
$t->{REQUEST} = ( <<EOF
GET /exec-date.shtml HTTP/1.0
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => "2\n\n" } ];
ok($tf->handle_http($t) == 0, 'ssi - echo ');
ok($tf->stop_proc == 0, "Stopping lighttpd");

Loading…
Cancel
Save