From 6cba66fa78d5707771fe888fb0c6fccde5b629be Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 9 Oct 2009 14:46:48 +0000 Subject: [PATCH] - Merge: Add missing open_basedir check in posix_mkfifo --- ext/posix/posix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 579a505997..25fcec330e 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -840,7 +840,8 @@ PHP_FUNCTION(posix_mkfifo) RETURN_FALSE; } - if (PG(safe_mode) && (!php_checkuid(path, NULL, CHECKUID_ALLOW_ONLY_DIR))) { + if (php_check_open_basedir_ex(path, 0 TSRMLS_CC) || + (PG(safe_mode) && (!php_checkuid(path, NULL, CHECKUID_ALLOW_ONLY_DIR)))) { RETURN_FALSE; } -- 2.50.1