1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

Fixed ws and comment

This commit is contained in:
Dmitry Stogov
2008-03-24 09:30:41 +00:00
parent 0ec1e42e52
commit 2f794ceabb

View 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]) ||