Просмотр исходного кода

Small error in the filepath fixed.

tags/rls1
kenn408k 6 лет назад
Родитель
Сommit
e43bca8cab
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      classes/upload.class.php

+ 1
- 1
classes/upload.class.php Просмотреть файл

@@ -32,7 +32,7 @@ class Upload {
32 32
         $randomname = Upload::generateRandomString(); // We give our file a random name - It will be this.
33 33
 
34 34
         $cwd = getcwd(); // Our websites CWD (Current working dir)
35
-        $uploadPath = $cwd . Config::$file_path . $randomname . '.' . $extension;
35
+        $uploadPath = $cwd .'/'. Config::$file_path . $randomname . '.' . $extension;
36 36
 
37 37
         if (!in_array($extension, Config::$file_types)) {
38 38
             // Error! This file does not have an acceptable filetype

Загрузка…
Отмена
Сохранить