summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 05:40:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:46 -0500
commit53ffd147bd15577ba87f7bef7db66d592066ed27 (patch)
tree7c3b09fc72b1146efdfd6657f24c6cc4e0a6aa9a /source4
parent3473f6b74b4545d09234d198468b0229c621b1cb (diff)
downloadsamba-53ffd147bd15577ba87f7bef7db66d592066ed27.tar.gz
samba-53ffd147bd15577ba87f7bef7db66d592066ed27.tar.bz2
samba-53ffd147bd15577ba87f7bef7db66d592066ed27.zip
r8632: use <pre> around displayed exceptions
(This used to be commit 001917cc9dec4bdf8839ef175edad352b2763239)
Diffstat (limited to 'source4')
-rw-r--r--source4/web_server/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index c2e9042d4a..e7d5c399ce 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -185,7 +185,7 @@ static int http_mapToStorage(EspHandle handle, char *path, int len, const char *
/*
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 @@ static void esp_request(struct esp_state *esp, const char *url)
#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);
}