summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
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/pgsql/pgsql.c
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/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 1bbc9a86f2..68e53fedb1 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1663,7 +1663,7 @@ PHP_FUNCTION(pg_loimport)
break;
}
- if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(file_in), NULL, 2))) {
+ if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(file_in), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}