]> granicus.if.org Git - php/commitdiff
MFB: Added missing open_basedir checks
authorIlia Alshanetsky <iliaa@php.net>
Thu, 4 Jan 2007 23:50:19 +0000 (23:50 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 4 Jan 2007 23:50:19 +0000 (23:50 +0000)
ext/session/mod_files.c

index 16f8e55895b91bd8dcc5a3ff8cfff3631e9c675f..bef732012152100a6864e07e6f88435c64a0daa9 100644 (file)
@@ -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 */