Reset config tags to default values.
authorP. J. McDermott <pjm@nac.net>
Mon, 23 Sep 2013 15:16:36 +0000 (11:16 -0400)
committerP. J. McDermott <pjm@nac.net>
Mon, 23 Sep 2013 15:16:36 +0000 (11:16 -0400)
src/ssic.pl

index 73c608d134041f61294bb56c35c13a698d1e60f7..f9744a95d800ca38d2b46fa13692154a5166a0bd 100755 (executable)
@@ -178,6 +178,12 @@ sub compile
        $ENV{"DOCUMENT_URI"} = $input;
        $ENV{"SCRIPT_FILENAME"} = $input_abs;
 
+       # Reset config tags to default values.
+       $ssi->config("errmsg",
+               "[an error occurred while processing this directive]");
+       $ssi->config("sizefmt", "abbrev");
+       $ssi->config("timefmt", undef);
+
        $ssi->set("DOCUMENT_NAME" => $input);
        $ssi->set("DOCUMENT_URI" => $input);