summaryrefslogtreecommitdiff
path: root/ext/dbase
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-11-02 23:08:07 +0000
committerAndi Gutmans <andi@php.net>2000-11-02 23:08:07 +0000
commitd0ec3df2884f58b7d7defb2e6a43e6b060789805 (patch)
tree73593b33fce95e5c7bc734b7f29e6df82477dd72 /ext/dbase
parente17df3a7bcfb6d408ae5db4ceff4b77c4efb9fe4 (diff)
downloadphp-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/dbase')
-rw-r--r--ext/dbase/dbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c
index baa2520bd5..a6c5bf1557 100644
--- a/ext/dbase/dbase.c
+++ b/ext/dbase/dbase.c
@@ -122,7 +122,7 @@ PHP_FUNCTION(dbase_open) {
convert_to_string(dbf_name);
convert_to_long(options);
- if (PG(safe_mode) && (!php_checkuid(dbf_name->value.str.val, NULL, 2))) {
+ if (PG(safe_mode) && (!php_checkuid(dbf_name->value.str.val, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}
@@ -590,7 +590,7 @@ PHP_FUNCTION(dbase_create) {
RETURN_FALSE;
}
- if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_P(filename), NULL, 2))) {
+ if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_P(filename), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}