Maxim Dounin
9984f3053f
Moved ngx_http_parse_time() to core, renamed accordingly.
...
The function is now called ngx_parse_http_time(), and can be used by
any code to parse HTTP-style date and time. In particular, it will be
used for OCSP stapling.
For compatibility, a macro to map ngx_http_parse_time() to the new name
provided for a while.
2015-06-11 20:42:31 +03:00
FengGu
bfa56738af
Dav: ngx_http_map_uri_to_path() errors were not checked.
...
Once error occured, it could lead to use uninitialized variables to log,
even more segmentation fault.
2014-07-30 14:45:08 +08:00
Ruslan Ermilov
9b4a99cf5d
Dav: emit a warning about unsafe URI.
2013-12-23 18:12:03 +04:00
Sergey Kandaurov
cfb2b55e8d
Unused macro and variable removed.
...
The macro NGX_HTTP_DAV_COPY_BLOCK is not used since 8101d9101ed8 (0.8.9).
The variable ngx_accept_mutex_lock_file was never used.
2013-10-02 11:51:04 +04:00
Maxim Dounin
248bc41893
Dav: fixed segfault on PUT if body was already read (ticket #238 ).
...
If request body reading happens with different options it's possible
that there will be no r->request_body->temp_file available (or even
no r->request_body available if body was discarded). Return internal
server error in this case instead of committing suicide by dereferencing
a null pointer.
2012-11-21 00:51:37 +00:00
Maxim Konovalov
f8d59e33f3
Copyright updated.
2012-01-18 15:07:43 +00:00
Ruslan Ermilov
a823c550e4
Replaced "can not" with "cannot" and "could not" in a bunch of places.
...
Fixed nearby grammar errors.
2011-09-19 14:48:29 +00:00
Igor Sysoev
34cd1cc656
allow Destination URL without host
2010-06-10 08:17:16 +00:00
Igor Sysoev
de0b1d6f12
remove r->zero_in_uri
2010-05-24 12:35:10 +00:00
Igor Sysoev
3ec15dd090
use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinks
2010-04-22 17:15:42 +00:00
Igor Sysoev
a2951910d3
omit '\0' from "Location" header on MKCOL request
2009-10-06 09:32:21 +00:00
Igor Sysoev
a552ab476e
check unsafe Destination
2009-09-25 09:30:06 +00:00
Igor Sysoev
9db33c9234
fix copy destination name length, introduced in r3025
2009-08-20 13:37:26 +00:00
Igor Sysoev
b7a09c5523
allow cross device temporary files atomic copying:
...
*) ngx_copy_file()
*) delete ngx_ext_rename_file_t.log_rename_error and .rename_error fields
2009-08-12 12:05:33 +00:00
Igor Sysoev
260c4321d7
return NULL instead of NGX_CONF_ERROR on a create conf failure
2009-06-02 16:09:44 +00:00
Igor Sysoev
ef919756d9
uniform ngx_file_info() interface with ngx_fd_info()
2009-04-29 19:28:52 +00:00
Igor Sysoev
d7fe640672
remove TODO comments
2009-04-18 19:39:06 +00:00
Igor Sysoev
524f54f56d
use ngx_ext_rename_file() for single file MOVE
2008-12-10 14:53:45 +00:00
Igor Sysoev
7f6b2ffc60
*) back out r2040
...
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
2008-06-17 15:00:30 +00:00
Igor Sysoev
5fd0931a61
*) host in request line has priority
...
*) allow several Host headers
*) validate host
2008-05-15 14:44:47 +00:00
Igor Sysoev
34cec29e0c
C++ compatibility
2008-03-03 16:32:16 +00:00
Igor Sysoev
fa0d3e1a10
fix building by msvc introduced in r1817
2008-01-22 15:16:38 +00:00
Igor Sysoev
b0fcbefb5d
style fix: remove trailing space
2008-01-08 11:33:14 +00:00
Igor Sysoev
67913781fc
fix comment
2008-01-05 19:07:10 +00:00
Igor Sysoev
81922511ae
use ngx_ext_rename_file() in PUT
2008-01-03 22:18:21 +00:00
Igor Sysoev
cea9034015
do not delete target until all tests will be done,
...
fix single file COPY/MOVE
2008-01-03 21:44:38 +00:00
Igor Sysoev
b98f27d67f
add log
2008-01-03 21:29:01 +00:00
Igor Sysoev
ac487bff1e
add comment
2008-01-03 20:43:12 +00:00
Igor Sysoev
58d04fe3fa
test URI/Destination collection/non-collection and Depth
2008-01-03 20:09:51 +00:00
Igor Sysoev
59781d66ce
axe useless code
2008-01-03 20:06:09 +00:00
Igor Sysoev
a27b0b7e48
change order
2008-01-03 19:18:25 +00:00
Igor Sysoev
369791a7df
change status code, add log message, and test collection URI
2008-01-03 19:13:04 +00:00
Igor Sysoev
284f0daa92
style fix
2008-01-03 17:21:13 +00:00
Igor Sysoev
8dd405319d
min_delete_depth
2007-12-30 11:46:03 +00:00
Igor Sysoev
b06db4283a
log DELETE errors
2007-12-30 10:24:43 +00:00
Igor Sysoev
0ce17d2b5b
axe useless code
2007-12-30 10:19:32 +00:00
Igor Sysoev
ab325357f9
change status code and add log message
2007-12-30 09:44:02 +00:00
Igor Sysoev
3f24ae2be2
several changes in server_name:
...
*) server_name_in_redirect directive and removal of the '*' stub
*) use server address in redirect if host can not be detected
*) ngx_http_server_addr()
*) allow wildcard and regex names to be a main server_name
*) DAV Destination header is tested against Host header
2007-12-29 15:30:39 +00:00
Igor Sysoev
5dff77ad7f
condition declarations inside blocks update missed in r1705
2007-12-29 13:55:10 +00:00
Igor Sysoev
465a5ff18b
tree.init_handler is never called
2007-12-21 17:50:49 +00:00
Igor Sysoev
b3ea970288
fix comment
2007-12-18 15:12:33 +00:00
Igor Sysoev
27dd6a62bd
use malloc() in ngx_win32_rename_file, set crit level instead of error
2007-12-07 19:57:13 +00:00
Igor Sysoev
fda6a08f71
omit unnecessary conditions
2007-08-07 10:56:09 +00:00
Igor Sysoev
832571f0fc
rename ngx_http_discard_body() to ngx_http_discard_request_body()
2007-08-06 15:37:22 +00:00
Igor Sysoev
471b92e58f
dav_access uses ngx_conf_set_access_slot()
2007-07-13 08:32:12 +00:00
Igor Sysoev
19b093f23b
style fix
2007-07-11 13:06:54 +00:00
Igor Sysoev
6d939760c6
style fix: remove trailing spaces
2007-04-19 18:07:39 +00:00
Igor Sysoev
5473662c94
COPY and MOVE
...
fix PUT and DELETE to conform to WebDAV specification
2007-02-16 12:16:25 +00:00
Igor Sysoev
e31625b60e
use ngx_dir_access() to enable search bits for directory
2007-01-29 12:25:44 +00:00
Igor Sysoev
cd5b99a045
undo "client_body_in_file_only any"
...
and introduce "client_body_in_file_only clean"
introduce ngx_pool_delete_file() to not break a possible third-party
ngx_pool_cleanup_file() usage that may lead to an removal of the useful files
delete unnecessary ngx_http_finalize_request_body()
2007-01-25 08:45:04 +00:00