comparison src/core/ngx_regex.c @ 461:a88a3e4e158f release-0.1.5

nginx-0.1.5-RELEASE import *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Nov 2004 14:07:14 +0000
parents 42d11f017717
children c52408583801
comparison
equal deleted inserted replaced
460:5f8319142dfc 461:a88a3e4e158f
51 re = pcre_compile((const char *) pattern->data, (int) options, 51 re = pcre_compile((const char *) pattern->data, (int) options,
52 &errstr, &erroff, NULL); 52 &errstr, &erroff, NULL);
53 53
54 if (re == NULL) { 54 if (re == NULL) {
55 if ((size_t) erroff == pattern->len) { 55 if ((size_t) erroff == pattern->len) {
56 ngx_snprintf((char *) err->data, err->len - 1, 56 ngx_snprintf(err->data, err->len - 1,
57 "pcre_compile() failed: %s in \"%s\"", 57 "pcre_compile() failed: %s in \"%s\"",
58 errstr, pattern->data); 58 errstr, pattern->data);
59 } else { 59 } else {
60 ngx_snprintf((char *) err->data, err->len - 1, 60 ngx_snprintf(err->data, err->len - 1,
61 "pcre_compile() failed: %s in \"%s\" at \"%s\"", 61 "pcre_compile() failed: %s in \"%s\" at \"%s\"",
62 errstr, pattern->data, pattern->data + erroff); 62 errstr, pattern->data, pattern->data + erroff);
63 } 63 }
64 } 64 }
65 65