Made SSI #include file= relative to the current doc, as per spec

This commit is contained in:
Sergey Lyubka committed 2013-07-19 07:57:47 +01:00
1 parent de7745370c
commit e003236a03
7 files changed
+12 -9

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
<html><pre>
ssi_begin
<!--#include file="Makefile" -->
<!--#include file="../Makefile" -->
ssi_end
</pre></html>
+1 -1
View File
@@ -1,5 +1,5 @@
<html><pre>
ssi_begin
<!--#include file="/etc/passwd" -->
<!--#include abspath="/etc/passwd" -->
ssi_end
</pre></html>
+1 -1
View File
@@ -1,5 +1,5 @@
<html><pre>
ssi_begin
<!--#include file="c:\boot.ini" -->
<!--#include abspath="c:\boot.ini" -->
ssi_end
</pre></html>
+1 -1
View File
@@ -1,3 +1,3 @@
ssi_begin
<!--#include file="Makefile" -->
<!--#include file="../Makefile" -->
ssi_end
+1 -1
View File
@@ -403,7 +403,7 @@ unless (scalar(@ARGV) > 0 and $ARGV[0] eq "basic_tests") {
my $abs_path = on_windows() ? 'ssi6.shtml' : 'ssi5.shtml';
my $word = on_windows() ? 'boot loader' : 'root';
o("GET /$abs_path HTTP/1.0\n\n",
"ssi_begin.+$word.+ssi_end", 'SSI #include file= (absolute)');
"ssi_begin.+$word.+ssi_end", 'SSI #include abspath');
o("GET /ssi7.shtml HTTP/1.0\n\n",
'ssi_begin.+Unit test.+ssi_end', 'SSI #include "..."');
o("GET /ssi8.shtml HTTP/1.0\n\n",