Ignore:
Timestamp:
02/03/09 19:54:45 (3 years ago)
Author:
George Potapov <nephrite@…>
Branches:
master-v0.6, nginx-v0.6
Children:
209e69, 6c857c, e8c363f79fad03918abb189d5a026fd0cd6d14f4
Parents:
60af37
git-author:
George Potapov <nephrite@…> (02/03/09 19:54:45)
git-committer:
George Potapov <nephrite@…> (02/03/09 19:54:45)
Message:

vendor drop nginx 0.6.35

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/src/http/modules/ngx_http_autoindex_module.c

    rb57b1b rfeb0c3  
    136136    u_char                         *last, *filename, scale; 
    137137    off_t                           length; 
    138     size_t                          len, copy, allocated, root; 
     138    size_t                          len, utf_len, allocated, root; 
    139139    ngx_tm_t                        tm; 
    140140    ngx_err_t                       err; 
     
    330330 
    331331        if (r->utf8) { 
    332             entry->utf_len = ngx_utf_length(entry->name.data, entry->name.len); 
     332            entry->utf_len = ngx_utf8_length(entry->name.data, entry->name.len); 
    333333        } else { 
    334334            entry->utf_len = len; 
     
    413413        len = entry[i].utf_len; 
    414414 
    415         if (entry[i].name.len - len) { 
     415        if (entry[i].name.len != len) { 
    416416            if (len > NGX_HTTP_AUTOINDEX_NAME_LEN) { 
    417                 copy = NGX_HTTP_AUTOINDEX_NAME_LEN - 3 + 1; 
     417                utf_len = NGX_HTTP_AUTOINDEX_NAME_LEN - 3 + 1; 
    418418 
    419419            } else { 
    420                 copy = NGX_HTTP_AUTOINDEX_NAME_LEN + 1; 
     420                utf_len = NGX_HTTP_AUTOINDEX_NAME_LEN + 1; 
    421421            } 
    422422 
    423             b->last = ngx_utf_cpystrn(b->last, entry[i].name.data, copy); 
     423            b->last = ngx_utf8_cpystrn(b->last, entry[i].name.data, 
     424                                       utf_len, entry[i].name.len + 1); 
    424425            last = b->last; 
    425426 
Note: See TracChangeset for help on using the changeset viewer.