Fix macro name in cgi_show_file() error path.
authorFabian Keil <fk@fabiankeil.de>
Sat, 26 Apr 2008 15:50:56 +0000 (15:50 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 26 Apr 2008 15:50:56 +0000 (15:50 +0000)
cgisimple.c

index df973b6..51ec710 100644 (file)
@@ -1,4 +1,4 @@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.72 2008/04/26 10:34:15 fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.73 2008/04/26 12:21:55 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@ -36,6 +36,9 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.72 2008/04/26 10:34:15 fabian
  *
  * Revisions   :
  *    $Log: cgisimple.c,v $
+ *    Revision 1.73  2008/04/26 12:21:55  fabiankeil
+ *    Forget about JB_ERR_PARSE. JB_ERR_CGI_PARAMS to the rescue.
+ *
  *    Revision 1.72  2008/04/26 10:34:15  fabiankeil
  *    If zlib support is unavailable and there are content filters active
  *    but the prevent-compression action is disabled, include a warning
@@ -2080,7 +2083,7 @@ static jb_err cgi_show_file(struct client_state *csp,
 
       if ((fp = fopen(filename, "rb")) == NULL)
       {
-         if (map(exports, "content", 1, "<h1>ERROR OPENING FILE!</h1>", 1))
+         if (map(exports, "contents", 1, "<h1>ERROR OPENING FILE!</h1>", 1))
          {
             free_map(exports);
             return JB_ERR_MEMORY;