]> granicus.if.org Git - php/commitdiff
Prevent processing SOAP headers with invalid namespace in WSDL mode.
authorDmitry Stogov <dmitry@php.net>
Mon, 16 Feb 2004 12:04:48 +0000 (12:04 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 16 Feb 2004 12:04:48 +0000 (12:04 +0000)
ext/soap/soap.c

index 6c3e8fe860e6741cdcf5416f690540c1877bb99d..13cfb827f2b1ad829791846ee74ec11cf6a25f4b 100644 (file)
@@ -1366,8 +1366,12 @@ PHP_METHOD(soapserver, handle)
                        soapHeader *h = header;
 
                        header = header->next;
-                       if (h->mustUnderstand && service->sdl && !h->function && !h->hdr) {
-                               soap_server_fault("MustUnderstand","Header not understood", NULL, NULL TSRMLS_CC);
+                       if (service->sdl && !h->function && !h->hdr) {
+                               if (h->mustUnderstand) {
+                                       soap_server_fault("MustUnderstand","Header not understood", NULL, NULL TSRMLS_CC);
+                               } else {
+                                       continue;
+                               }
                        }
 
                        fn_name = estrndup(Z_STRVAL(h->function_name),Z_STRLEN(h->function_name));