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/filepro | |
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/filepro')
-rw-r--r-- | ext/filepro/filepro.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/filepro/filepro.c b/ext/filepro/filepro.c index c98cbabd77..6b7a3b6061 100644 --- a/ext/filepro/filepro.c +++ b/ext/filepro/filepro.c @@ -206,7 +206,7 @@ PHP_FUNCTION(filepro) sprintf(workbuf, "%s/map", dir->value.str.val); - if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, 2))) { + if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { RETURN_FALSE; } @@ -305,7 +305,7 @@ PHP_FUNCTION(filepro_rowcount) /* Now read the records in, moving forward recsize-1 bytes each time */ sprintf(workbuf, "%s/key", FP_GLOBAL(fp_database)); - if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, 2))) { + if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { RETURN_FALSE; } @@ -530,7 +530,7 @@ PHP_FUNCTION(filepro_retrieve) /* Now read the record in */ sprintf(workbuf, "%s/key", FP_GLOBAL(fp_database)); - if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, 2))) { + if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { RETURN_FALSE; } |