From 9d5d48548f67b43c484e1d9a059f88c9a876f559 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Mon, 15 Aug 2005 09:51:17 +0000 Subject: [PATCH] use the 'len' parameter for html-encoding git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@539 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_status.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod_status.c b/src/mod_status.c index b09c1048..e773b315 100644 --- a/src/mod_status.c +++ b/src/mod_status.c @@ -510,7 +510,7 @@ static handler_t mod_status_handle_server_status_html(server *srv, connection *c BUFFER_APPEND_STRING_CONST(b, ""); - buffer_append_string_html_encoded(b, c->uri.path->ptr); + buffer_append_string_html_encoded(b, CONST_BUF_LEN(c->uri.path)); BUFFER_APPEND_STRING_CONST(b, ""); @@ -642,7 +642,6 @@ static handler_t mod_status_handle_server_config(server *srv, connection *con, v } mod_status_header_append(b, "Config-File-Settings"); - mod_status_row_append(b, "Directory Listings", con->conf.dir_listing ? "enabled" : "disabled"); for (i = 0; i < srv->plugins.used; i++) { plugin **ps = srv->plugins.ptr;