svn commit: samba r8632 - in branches/SAMBA_4_0/source/web_server: .

tridge at samba.org tridge at samba.org
Wed Jul 20 05:40:53 GMT 2005


Author: tridge
Date: 2005-07-20 05:40:51 +0000 (Wed, 20 Jul 2005)
New Revision: 8632

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8632

Log:
use <pre> around displayed exceptions


Modified:
   branches/SAMBA_4_0/source/web_server/http.c


Changeset:
Modified: branches/SAMBA_4_0/source/web_server/http.c
===================================================================
--- branches/SAMBA_4_0/source/web_server/http.c	2005-07-20 05:40:24 UTC (rev 8631)
+++ branches/SAMBA_4_0/source/web_server/http.c	2005-07-20 05:40:51 UTC (rev 8632)
@@ -185,7 +185,7 @@
 /*
   called when esp wants to output something
 */
-static int http_writeBlock(EspHandle handle, char *buf, int size)
+static int http_writeBlock(EspHandle handle, const char *buf, int size)
 {
 	struct websrv_context *web = talloc_get_type(handle, struct websrv_context);
 	NTSTATUS status;
@@ -503,7 +503,9 @@
 #endif
 	res = espProcessRequest(esp->req, url, buf, &emsg);
 	if (res != 0 && emsg) {
+		http_writeBlock(web, "<pre>", 5);
 		http_writeBlock(web, emsg, strlen(emsg));
+		http_writeBlock(web, "</pre>", 6);
 	}
 	talloc_free(buf);
 }



More information about the samba-cvs mailing list