]> git.kaiwu.me - nginx.git/commit
Merging r4193, r4194:
authorIgor Sysoev <igor@sysoev.ru>
Tue, 1 Nov 2011 14:09:15 +0000 (14:09 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 1 Nov 2011 14:09:15 +0000 (14:09 +0000)
commit844ce56e348734b597ba9307dff2d5051a280b52
treee4bff18600fcdee3b8c01a1a8529384a8ad55651
parent5fdf27caec130f041771ee51daaf38e9574141d4
Merging r4193, r4194:

Autoindex fixes:

*) Autoindex: escape '?' in file names.

   For files with '?' in their names autoindex generated links with '?' not
   escaped.  This resulted in effectively truncated links as '?' indicates
   query string start.

   This is an updated version of the patch originally posted at [1].  It
   introduces generic NGX_ESCAPE_URI_COMPONENT which escapes everything but
   unreserved characters as per RFC 3986.  This approach also renders unneeded
   special colon processing (as colon is percent-encoded now), it's dropped
   accordingly.

   [1] http://nginx.org/pipermail/nginx-devel/2010-February/000112.html

*) Autoindex: escape html in file names.
src/core/ngx_string.c
src/core/ngx_string.h
src/http/modules/ngx_http_autoindex_module.c