Merged in mcuiza/processmaker/PM-1555 (pull request #1458)
PM-1555 (No se puede realizar la importación de templates en Process Files Manager)
This commit is contained in:
@@ -275,6 +275,10 @@ class FilesManager
|
||||
$_FILES['prf_file']['name'] = $_FILES['prf_file']['name'].$extention;
|
||||
}
|
||||
$file = end(explode("/",$path));
|
||||
if(strpos($file,"\\") > 0) {
|
||||
$file = str_replace('\\', '/', $file);
|
||||
$file = end(explode("/",$file));
|
||||
}
|
||||
$path = str_replace($file,'',$path);
|
||||
if ($file == $_FILES['prf_file']['name']) {
|
||||
if ($_FILES['prf_file']['error'] != 1) {
|
||||
|
||||
Reference in New Issue
Block a user