From e003236a038822c57201f3807958b77562e88ef1 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 19 Jul 2013 07:57:47 +0100 Subject: [PATCH] Made SSI #include file= relative to the current doc, as per spec --- UserManual.md | 6 ++++-- mongoose.c | 5 +++-- test/ssi1.shtml | 2 +- test/ssi5.shtml | 2 +- test/ssi6.shtml | 2 +- test/ssi9.shtml | 2 +- test/test.pl | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/UserManual.md b/UserManual.md index 8590dcea..e5474a3f 100644 --- a/UserManual.md +++ b/UserManual.md @@ -143,8 +143,10 @@ directives are supported, ` + ssi_end diff --git a/test/ssi5.shtml b/test/ssi5.shtml index de3e49b8..1db2a782 100644 --- a/test/ssi5.shtml +++ b/test/ssi5.shtml @@ -1,5 +1,5 @@
 ssi_begin
-
+
 ssi_end
 
diff --git a/test/ssi6.shtml b/test/ssi6.shtml index 2fd8b510..4359baaf 100644 --- a/test/ssi6.shtml +++ b/test/ssi6.shtml @@ -1,5 +1,5 @@
 ssi_begin
-
+
 ssi_end
 
diff --git a/test/ssi9.shtml b/test/ssi9.shtml index 92030759..4e837782 100644 --- a/test/ssi9.shtml +++ b/test/ssi9.shtml @@ -1,3 +1,3 @@ ssi_begin - + ssi_end diff --git a/test/test.pl b/test/test.pl index 45d1865b..d455741e 100644 --- a/test/test.pl +++ b/test/test.pl @@ -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",