From: Dmitry Stogov Date: Mon, 24 Mar 2008 09:30:54 +0000 (+0000) Subject: Fixed ws and comment X-Git-Tag: RELEASE_2_0_0a1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cee56e2022f50655279cce68372d490239fc90e8;p=php Fixed ws and comment --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 5aa95c19c0..5f55105ac6 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -460,11 +460,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]) ||