diff options
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r-- | main/safe_mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index 675a3d7ab4..f570ca80fc 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -68,7 +68,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) * If given filepath is a URL, allow - safe mode stuff * related to URL's is checked in individual functions */ - if (!strncasecmp(filename,"http://",7) || !strncasecmp(filename,"ftp://",6)) { + if (!strncasecmp(filename,"http://", 7) || !strncasecmp(filename,"ftp://", 6)) { return 1; } @@ -97,11 +97,11 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) } /* Trim off filename */ - if ((s = strrchr(path,DEFAULT_SLASH))) { + if ((s = strrchr(path, DEFAULT_SLASH))) { *s = '\0'; } } else { /* CHECKUID_ALLOW_ONLY_DIR */ - s = strrchr(filename,DEFAULT_SLASH); + s = strrchr(filename, DEFAULT_SLASH); if (s) { *s = '\0'; |