diff options
| author | Andi Gutmans <andi@php.net> | 2000-11-02 23:08:07 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-11-02 23:08:07 +0000 |
| commit | d0ec3df2884f58b7d7defb2e6a43e6b060789805 (patch) | |
| tree | 73593b33fce95e5c7bc734b7f29e6df82477dd72 /ext/standard/link.c | |
| parent | e17df3a7bcfb6d408ae5db4ceff4b77c4efb9fe4 (diff) | |
| download | php-git-d0ec3df2884f58b7d7defb2e6a43e6b060789805.tar.gz | |
- Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
Diffstat (limited to 'ext/standard/link.c')
| -rw-r--r-- | ext/standard/link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/link.c b/ext/standard/link.c index f7dd9a1aeb..b5af9ca65d 100644 --- a/ext/standard/link.c +++ b/ext/standard/link.c @@ -110,7 +110,7 @@ PHP_FUNCTION(symlink) convert_to_string_ex(topath); convert_to_string_ex(frompath); - if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, 2)) { + if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { RETURN_FALSE; } if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) { @@ -141,7 +141,7 @@ PHP_FUNCTION(link) convert_to_string_ex(topath); convert_to_string_ex(frompath); - if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, 2)) { + if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { RETURN_FALSE; } if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) { |
