diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-15 09:51:17 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-15 09:51:17 +0000 |
commit | 9d5d48548f67b43c484e1d9a059f88c9a876f559 (patch) | |
tree | 3bbcf4d9dbc262ffcddb1c18b5346f3efa0c841b | |
parent | 7e71b5c8802d591e2f4a4929f00e60d530302a2e (diff) | |
download | lighttpd-git-9d5d48548f67b43c484e1d9a059f88c9a876f559.tar.gz |
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
-rw-r--r-- | src/mod_status.c | 3 |
1 files changed, 1 insertions, 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, "</td><td class=\"string\">"); - 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, "</td><td class=\"string\">"); @@ -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; |