From ccbd1a4615f9d06d26ef892e10dac185a519b5bb Mon Sep 17 00:00:00 2001 From: Joe <joe@incal.net> Date: Wed, 16 Nov 2011 00:12:06 +0100 Subject: [PATCH] move the temp dir for nextgen out of the www root --- wp-content/plugins/nextgen-gallery/admin/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/plugins/nextgen-gallery/admin/functions.php b/wp-content/plugins/nextgen-gallery/admin/functions.php index a2897dd2e..6273573f5 100644 --- a/wp-content/plugins/nextgen-gallery/admin/functions.php +++ b/wp-content/plugins/nextgen-gallery/admin/functions.php @@ -2,7 +2,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } // Temporary file reservoir, which should exist and be property of www-data. Needed to bypass open_basedir -define('NEXTGEN_TMP_FILES', '/opt/noblogs/www/wp-content/tmp/'); +define('NEXTGEN_TMP_FILES', '/opt/noblogs/tmp/nextgen'); /** * nggAdmin - Class for admin operation * -- GitLab