- rather use '\r'/'\n' character symbols than the hex values
authorMichael Wallner <mike@php.net>
Tue, 14 Mar 2006 09:01:11 +0000 (09:01 +0000)
committerMichael Wallner <mike@php.net>
Tue, 14 Mar 2006 09:01:11 +0000 (09:01 +0000)
http_filter_api.c

index dcc71867ed444648c0d09f53e34ff35507882474..2553d681113728bbbe727deb95fc2c7b4ad91fe3 100644 (file)
@@ -165,8 +165,8 @@ static HTTP_FILTER_FUNCTION(chunked_decode)
                        
                        /* ignore preceeding CRLFs (too loose?) */
                        while (off < PHPSTR_LEN(buffer) && (
-                                       PHPSTR_VAL(buffer)[off] == 0xa || 
-                                       PHPSTR_VAL(buffer)[off] == 0xd)) {
+                                       PHPSTR_VAL(buffer)[off] == '\n' || 
+                                       PHPSTR_VAL(buffer)[off] == '\r')) {
                                ++off;
                        }
                        if (off) {