pier 01/08/05 20:07:06 Modified: webapp/lib pr_info.c wa_request.c Log: Avoid dumping request information back to the client in case of errors and when looking the WebApp information page if we were not compiled with DEBUG defined. Revision Changes Path 1.4 +3 -1 jakarta-tomcat-connectors/webapp/lib/pr_info.c Index: pr_info.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/lib/pr_info.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- pr_info.c 2001/07/19 04:20:42 1.3 +++ pr_info.c 2001/08/06 03:07:06 1.4 @@ -55,7 +55,7 @@ * * * ========================================================================= */ -/* @version $Id: pr_info.c,v 1.3 2001/07/19 04:20:42 pier Exp $ */ +/* @version $Id: pr_info.c,v 1.4 2001/08/06 03:07:06 pier Exp $ */ #include <wa.h> /* Counter for requests */ @@ -297,6 +297,7 @@ wa_rprintf(r," </table>\n"); wa_rprintf(r," <br>\n"); +#ifdef DEBUG /* See the request */ wa_rprintf(r," <table width=\"80%%\" border=\"1\" cellspacing=\"0\">\n"); wa_rprintf(r," <tr>\n"); @@ -425,6 +426,7 @@ } wa_rprintf(r," </table>\n"); +#endif /* ifdef DEBUG */ wa_rprintf(r," <br>\n"); wa_rprintf(r," </div>\n"); 1.15 +3 -1 jakarta-tomcat-connectors/webapp/lib/wa_request.c Index: wa_request.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/lib/wa_request.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- wa_request.c 2001/07/19 23:50:47 1.14 +++ wa_request.c 2001/08/06 03:07:06 1.15 @@ -55,7 +55,7 @@ * * * ========================================================================= */ -/* @version $Id: wa_request.c,v 1.14 2001/07/19 23:50:47 pier Exp $ */ +/* @version $Id: wa_request.c,v 1.15 2001/08/06 03:07:06 pier Exp $ */ #include <wa.h> /* Allocate a new request structure. */ @@ -162,6 +162,7 @@ wa_rprintf(r," <hr>\n"); wa_rprintf(r," %s\n",buf); wa_rprintf(r," <hr>\n"); +#ifdef DEBUG wa_rprintf(r," <dl>\n"); wa_rprintf(r," <dt>Your Request:</dt>\n"); wa_rprintf(r," <dd>Server Host: \"%s\"</dd>\n",r->serv->host); @@ -182,6 +183,7 @@ apr_table_do(headers,r,r->hdrs,NULL); wa_rprintf(r," </dl>\n"); wa_rprintf(r," <hr>\n"); +#endif /* ifdef DEBUG */ wa_rprintf(r," </body>\n"); wa_rprintf(r,"</html>\n"); wa_rflush(r);