From 4376a1aa26c2698a777cbd86ef3d421f0248f39e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 29 Mar 2016 14:31:55 +0200 Subject: [PATCH] Full-qualified path name "detection" added. --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.php b/index.php index a8410f2..7d86636 100644 --- a/index.php +++ b/index.php @@ -94,7 +94,7 @@ $data['ignores'][] = $data['scriptname']; // Use canonized path - $data['uploaddir'] = realpath($settings['uploaddir']); + $data['uploaddir'] = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . $settings['uploaddir']); // Maximum upload size, set by system $data['max_upload_size'] = ini_get('upload_max_filesize'); @@ -253,7 +253,6 @@ unlink($file); $file_array = listFiles($settings['uploaddir'], $data['ignores']); - ?> -- 2.39.5