diff options
author | Christian Stocker <chregu@php.net> | 2002-08-22 07:48:23 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2002-08-22 07:48:23 +0000 |
commit | 9495fb9d7dc6193c57b62d4e38f8eec1cf9919f7 (patch) | |
tree | 09e8f52187beb97e7e7e945ed14437b01597327f /main/SAPI.c | |
parent | 266193159bfca60a5bd65d611448d9b175ce17fe (diff) | |
download | php-git-9495fb9d7dc6193c57b62d4e38f8eec1cf9919f7.tar.gz |
@ - Added php.ini option "allow_webdav_methods" to allow handling of
@ WebDAV http requests within PHP scripts. (chregu)
# More methods (for DeltaV) will follow.
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 054d35dce2..ab83ca0079 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -306,8 +306,16 @@ SAPI_API void sapi_activate(TSRMLS_D) SG(rfc1867_uploaded_files) = NULL; if (SG(server_context)) { - if (SG(request_info).request_method - && !strcmp(SG(request_info).request_method, "POST")) { + if ( SG(request_info).request_method + && (!strcmp(SG(request_info).request_method, "POST") + || (PG(allow_webdav_methods) + && (!strcmp(SG(request_info).request_method, "PROPFIND") + || !strcmp(SG(request_info).request_method, "PROPPATCH") + || !strcmp(SG(request_info).request_method, "PUT") + || !strcmp(SG(request_info).request_method, "MOVE") + || !strcmp(SG(request_info).request_method, "POST") + || !strcmp(SG(request_info).request_method, "COPY") + || !strcmp(SG(request_info).request_method, "LOCK"))))) { if (!SG(request_info).content_type) { SG(request_info).content_type_dup = NULL; if(PG(always_populate_raw_post_data)) { |