Ужосы какие-то пишут про nginx

Kirill A. Korinskiy catap at catap.ru
Fri Apr 18 10:34:35 MSD 2008


Дмитрий Лоханский -> nginx-ru at sysoev.ru  @ Fri, 18 Apr 2008 01:53:53 +0400:

 ДЛ>    /*
 ДЛ>     * ngx_http_map_uri_to_path() allocates memory for terminating '\0'
 ДЛ>     * so we do not need to reserve memory for '/' for possible redirect
 ДЛ>     */

 ДЛ>    last = ngx_http_map_uri_to_path(r, &path, &root, 0);
 ДЛ>    if (last == NULL) {
 ДЛ>        return NGX_HTTP_INTERNAL_SERVER_ERROR;
 ДЛ>    }

 ДЛ> Просто не очень внимательны.

Не всегда данные для системных вызовов брать можно из url'а таким вот способом
(используя ngx_http_map_uri_to_path).

Да и не прозрачно это.

-- 
| |*| |  Kirill A. Korinskiy <catap at catap.ru>
| | |*|  proud (maniac)? (developer|hacker)
|*|*|*|  http://catap.ru/ - +7 (916) 3-604-704 - xmpp:catap at catap.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080418/b7c9fc3e/attachment.pgp>


More information about the nginx-ru mailing list