diff options
| author | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
| commit | 1159c84ab7849099d4a717cd05c2d920102040ed (patch) | |
| tree | ed4e48bb27e2ce5de5972fc3a29c1d24c818467a /main/safe_mode.c | |
| parent | fcc035108f7b8d2e169c5a592227b3df84d0573e (diff) | |
| download | php-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz | |
- TSRMLS_FETCH work
- whitespace fixes
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'; |
