]> granicus.if.org Git - php/commitdiff
Fix layout
authorZeev Suraski <zeev@php.net>
Mon, 16 Jul 2001 20:42:49 +0000 (20:42 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 16 Jul 2001 20:42:49 +0000 (20:42 +0000)
Guys - when submitting patches - please make sure you're not breaking
the layout of the code!  It's not less important than the patch
itself.

main/rfc1867.c

index d7a90fa7927d47998546427d3102bfa34f2b49f2..338d70ba49a60be40e3c5368adcf6671032dc5b1 100644 (file)
@@ -158,12 +158,12 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S
                                                SAFE_RETURN;
                                        }
                                        if (ptr[1] == '\n') {
-                                                /* empty line as end of header found */
+                                               /* empty line as end of header found */
                                                php_error(E_WARNING, "File Upload Mime headers garbled ptr: [%c%c%c%c%c]", *ptr, *(ptr + 1), *(ptr + 2), *(ptr + 3), *(ptr + 4));
                                                SAFE_RETURN;
-                                        }
+                                       }
                                        /* some other headerfield found, skip it */
-                                        loc = (char *) memchr(ptr, '\n', rem)+1;
+                                       loc = (char *) memchr(ptr, '\n', rem)+1;
                                        while (*loc == ' ' || *loc == '\t')
                                                /* other field is folded, skip it */
                                                loc = (char *) memchr(loc, '\n', rem-(loc-ptr))+1;
@@ -171,9 +171,10 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S
                                        ptr = loc;
                                }
                                loc = memchr(ptr, '\n', rem);
-                               while (loc[1] == ' ' || loc[1] == '\t')
+                               while (loc[1] == ' ' || loc[1] == '\t') {
                                        /* field is folded, look for end */
                                        loc = memchr(loc+1, '\n', rem-(loc-ptr)-1);
+                               }
                                name = strstr(ptr, " name=");
                                if (name && name < loc) {
                                        name += 6;