]> git.mxchange.org Git - simple-upload.git/commitdiff
Full-qualified path name "detection" added.
authorRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 12:31:55 +0000 (14:31 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 12:31:55 +0000 (14:31 +0200)
index.php

index a8410f23399c0e4a3f7252f32431123462ab6ee2..7d866367d72263ab54ada5cac935827f642e0ad2 100644 (file)
--- 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');
                        unlink($file);
 
        $file_array = listFiles($settings['uploaddir'], $data['ignores']);
-
 ?>
 <!DOCTYPE html>
 <html lang="<?=$settings['lang']?>" dir="<?=$settings['lang_dir']?>">