summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-03-24 09:30:41 +0000
committerDmitry Stogov <dmitry@php.net>2008-03-24 09:30:41 +0000
commit2f794ceabb3f368d6ab51295beb101f0311dfba0 (patch)
tree074f26f48949d1301a4511c1368721b815a7df48 /main
parent0ec1e42e529ae8ff2c4c372d5faa2381640d5341 (diff)
downloadphp-git-2f794ceabb3f368d6ab51295beb101f0311dfba0.tar.gz
Fixed ws and comment
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index d686a303ac..9f9b0e7c16 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -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]) ||