Преглед на файлове

Fix issue 43 and 47. Bug on add image from URL.

vbracco преди 18 години
родител
ревизия
ae58f82378
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php Целия файл

85
 	}
85
 	}
86
 	
86
 	
87
 	function getFile($remoteFileName) {
87
 	function getFile($remoteFileName) {
88
-		$fileName = sanitizeName("../uploads/".$remoteFileName);
88
+		$fileName = "../uploads/".sanitizeName($remoteFileName);
89
 		$str = _file_get_contents($remoteFileName);
89
 		$str = _file_get_contents($remoteFileName);
90
 		if (!$handle = fopen($fileName, 'w')) {
90
 		if (!$handle = fopen($fileName, 'w')) {
91
 			return false;
91
 			return false;