aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_autoindex_module.c
diff options
context:
space:
mode:
authorNova DasSarma <nova@novalinium.com>2018-09-19 09:26:47 -0500
committerNova DasSarma <nova@novalinium.com>2018-09-19 09:26:47 -0500
commit8117b3f5a06b68afb292ddd19bf6ee6000707232 (patch)
treef2fd38fbc94e94d0c1c1147f2e4ba8d945a7bec1 /src/http/modules/ngx_http_autoindex_module.c
parentab9038af7eaf1ec67ae4ccc357e5c702b9cfc099 (diff)
downloadnginx-8117b3f5a06b68afb292ddd19bf6ee6000707232.tar.gz
nginx-8117b3f5a06b68afb292ddd19bf6ee6000707232.zip
Removed bgcolor attribute on body in error pages and autoindex.
The bgcolor attribute overrides compatibility settings in browsers and leads to undesirable behavior when the default font color is set to white in the browser, since font-color is not also overridden.
Diffstat (limited to 'src/http/modules/ngx_http_autoindex_module.c')
-rw-r--r--src/http/modules/ngx_http_autoindex_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
index 94b91db80..d59fba237 100644
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -452,7 +452,7 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
static u_char header[] =
"</title></head>" CRLF
- "<body bgcolor=\"white\">" CRLF
+ "<body>" CRLF
"<h1>Index of "
;