From 939a8d43cf6d0007065a62fdb53f7cffeead40fc Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 16 Feb 2004 12:04:48 +0000 Subject: [PATCH] Prevent processing SOAP headers with invalid namespace in WSDL mode. --- ext/soap/soap.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 6c3e8fe860..13cfb827f2 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -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)); -- 2.40.0