From ffb38283618851c4697a359824da679780c4564e Mon Sep 17 00:00:00 2001 From: "P. J. McDermott" Date: Sun, 22 Sep 2013 15:02:56 -0400 Subject: [PATCH] Set DOCUMENT_NAME and DOCUMENT_URI. --- src/ssic.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ssic.pl b/src/ssic.pl index f87aa9e..80e2071 100644 --- a/src/ssic.pl +++ b/src/ssic.pl @@ -115,10 +115,16 @@ sub compile open($input_fh, "<", $input); open($output_fh, ">", $output); - %ENV = (); + %ENV = ( + "DOCUMENT_NAME" => $input, + "DOCUMENT_URI" => $input, + ); $CGI::SSI::DEBUG = 0; - $ssi = CGI::SSI->new(); + $ssi = CGI::SSI->new( + "DOCUMENT_NAME" => $input, + "DOCUMENT_URI" => $input, + ); while (($var_name, $var_value) = each(%{$vars})) { $ssi->set($var_name => $var_value); -- 2.31.1