]> granicus.if.org Git - php/commitdiff
Fixed ws and comment
authorDmitry Stogov <dmitry@php.net>
Mon, 24 Mar 2008 09:30:41 +0000 (09:30 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 24 Mar 2008 09:30:41 +0000 (09:30 +0000)
main/fopen_wrappers.c

index d686a303ac0164fa745d11ca29a0ab885388db41..9f9b0e7c16a15af7e9747a38dbf392906cb066ee 100644 (file)
@@ -452,11 +452,11 @@ PHPAPI char *php_resolve_path(const char *filename, int filename_length, const c
                return NULL;
        }
 
-       /* Don't resolve patches which contain protocol */
+       /* Don't resolve paths which contain protocol */
        for (p = filename; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++);
-    if ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/')) {
-       return NULL;
-    }
+       if ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/')) {
+               return NULL;
+       }
 
        if ((*filename == '.' && 
             (IS_SLASH(filename[1]) ||