You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by jo...@apache.org on 2004/02/18 13:07:38 UTC
cvs commit: httpd-test/perl-framework/t/modules autoindex.t
jorton 2004/02/18 04:07:38
Modified: perl-framework/t/modules autoindex.t
Log:
Autodetect whether <hr> or <hr /> is being used.
Revision Changes Path
1.11 +6 -1 httpd-test/perl-framework/t/modules/autoindex.t
Index: autoindex.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/modules/autoindex.t,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -d -u -r1.10 -r1.11
--- autoindex.t 31 Jan 2004 00:54:32 -0000 1.10
+++ autoindex.t 18 Feb 2004 12:07:38 -0000 1.11
@@ -25,7 +25,7 @@
my ($C,$O);
my $cfg = Apache::Test::config();
my $have_apache_2 = have_apache 2;
-my $hr = $have_apache_2 ? '<hr>' : '<hr />';
+my $hr = '<hr>';
my %file =
(
@@ -200,6 +200,11 @@
## cope with new 2.1-style headers which use a semi-colon
## to separate query segment parameters
$sep = ';';
+ }
+
+ if ($actual =~ /<hr \/>/) {
+ ## cope with new-fangled <hr /> tags
+ $hr = '<hr />';
}
## set up html for fancy indexing ##