Patch phar_restful for PHAR related Bug #51918
Patch version 2012-01-11 18:08 UTC
Return to Bug #51918 |
Download this patch
Patch Revisions:
Developer: f@overridelogic.com
Index: ext/phar/phar_object.c
===================================================================
--- ext/phar/phar_object.c (revision 322072)
+++ ext/phar/phar_object.c (working copy)
@@ -680,7 +680,7 @@
}
/* retrieve requested file within phar */
- if (!(SG(request_info).request_method && SG(request_info).request_uri && (!strcmp(SG(request_info).request_method, "GET") || !strcmp(SG(request_info).request_method, "POST")))) {
+ if (!(SG(request_info).request_method && SG(request_info).request_uri && (!strcmp(SG(request_info).request_method, "GET") || !strcmp(SG(request_info).request_method, "POST") || !strcmp(SG(request_info).request_method, "PUT") || !strcmp(SG(request_info).request_method, "DELETE") || !strcmp(SG(request_info).request_method, "OPTIONS")))) {
return;
}
|