php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60842
Patch soap-crlf.jxs.patch revision 2012-01-22 22:24 UTC by 120122 at jxs dot nl

Patch soap-crlf.jxs.patch for SOAP related Bug #60842

Patch version 2012-01-22 22:24 UTC

Return to Bug #60842 | Download this patch
Patch Revisions:

Developer: 120122@jxs.nl

diff -wur php-5.3.9/ext/soap/php_http.c php-5.3.9-patched/ext/soap/php_http.c
--- php-5.3.9/ext/soap/php_http.c       2012-01-01 14:15:04.000000000 +0100
+++ php-5.3.9-patched/ext/soap/php_http.c       2012-01-22 23:02:08.689575665 +0100
@@ -1319,6 +1319,10 @@
                        int buf_size = 0;
 
                        php_stream_gets(stream, chunk_size, sizeof(chunk_size));
+
+                       if (chunk_size[sizeof(chunk_size)-2] == '\r')
+                                chunk_size[sizeof(chunk_size)-2] = php_stream_getc(stream);
+
                        if (sscanf(chunk_size, "%x", &buf_size) > 0 ) {
                                if (buf_size > 0) {
                                        int len_size = 0;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC