From: Ilia Alshanetsky Date: Thu, 4 Jan 2007 23:50:19 +0000 (+0000) Subject: MFB: Added missing open_basedir checks X-Git-Tag: RELEASE_1_0_0RC1~403 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b21b4c01c379d6981e190f96c2ed0ead8fee4589;p=php MFB: Added missing open_basedir checks --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 16f8e55895..bef7320121 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -255,6 +255,10 @@ PS_OPEN_FUNC(files) if (*save_path == '\0') { /* if save path is an empty string, determine the temporary dir */ save_path = php_get_temporary_directory(); + + if (php_check_open_basedir(save_path TSRMLS_CC)) { + return FAILURE; + } } /* split up input parameter */