commit: 9625babe40f7053ed5b16e7d5fc3f58321e7cb3a
parent: ad14c0dfbddf40e536da82f2186ab9926516fb32
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 4 Jun 2019 03:16:56 +0200
nginx/02 custom autoindex.patch: Update for 1.16.0
Diffstat:
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/patches/www-servers/nginx/02 custom autoindex.patch b/patches/www-servers/nginx/02 custom autoindex.patch
@@ -22,24 +22,23 @@ index 2af88a0..18c7570 100644
+ sizeof("</pre><hr>") - 1
+ sizeof(tail) - 1;
-@@ -499,15 +497,13 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
+@@ -499,14 +497,12 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
}
- len += sizeof("<a href=\"") - 1
-- + entry[i].name.len + entry[i].escape
-+ + entry[i].name.len
- + 1 /* 1 is for "/" */
- + sizeof("\">") - 1
-- + entry[i].name.len - entry[i].utf_len
-- + entry[i].escape_html
-- + NGX_HTTP_AUTOINDEX_NAME_LEN + sizeof(">") - 2
-+ + entry[i].utf_len
- + sizeof("</a>") - 1
- + sizeof(" 28-Sep-1970 12:00 ") - 1
-- + 20 /* the file size */
-+ + 256 /* the file size */
- + 2;
- }
+ entry_len = sizeof("<a href=\"") - 1
+- + entry[i].name.len + entry[i].escape
++ + entry[i].name.len
+ + 1 /* 1 is for "/" */
+ + sizeof("\">") - 1
+- + entry[i].name.len - entry[i].utf_len
+- + entry[i].escape_html
+- + NGX_HTTP_AUTOINDEX_NAME_LEN + sizeof(">") - 2
++ + entry[i].utf_len
+ + sizeof("</a>") - 1
+ + sizeof(" 28-Sep-1970 12:00 ") - 1
+- + 20 /* the file size */
++ + 256 /* the file size */
+ + 2;
@@ -531,14 +527,14 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)