File: nginx-0.6-support.patch

package info (click to toggle)
nginx 1.18.0-6.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,344 kB
  • sloc: ansic: 250,653; perl: 7,548; sh: 1,408; ruby: 879; python: 358; makefile: 338; awk: 36; cpp: 18
file content (23 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
=== modified file 'ngx_http_fancyindex_module.c'
--- ngx_http_fancyindex_module.c	2008-09-11 17:55:52 +0000
+++ ngx_http_fancyindex_module.c	2008-12-10 01:33:43 +0000
@@ -383,7 +383,7 @@
         entry->mtime   = ngx_de_mtime(&dir);
         entry->size    = ngx_de_size(&dir);
         entry->utf_len = (r->utf8)
-            ?  ngx_utf8_length(entry->name.data, entry->name.len)
+            ?  ngx_utf_length(entry->name.data, entry->name.len)
             : len;
     }
 
@@ -478,8 +478,7 @@
                 copy = NGX_HTTP_FANCYINDEX_NAME_LEN + 1;
             }
 
-            b->last = ngx_utf8_cpystrn(b->last, entry[i].name.data,
-                                          copy, entry[i].name.len);
+            b->last = ngx_utf_cpystrn(b->last, entry[i].name.data, copy);
             last = b->last;
 
         } else {