Se adiciona validacion para download en FILESMANAGER

This commit is contained in:
Freddy Daniel Rojas Valda
2014-02-21 16:10:09 -04:00
parent aaecff64a6
commit c148f4c336

View File

@@ -421,8 +421,12 @@ class FilesManager
$sDirectory = PATH_DATA_MAILTEMPLATES . $sProcessUID . PATH_SEP . $sfile; $sDirectory = PATH_DATA_MAILTEMPLATES . $sProcessUID . PATH_SEP . $sfile;
break; break;
} }
$oProcessMap = new \processMap(new \DBConnection()); if (file_exists(PATH_SEP.$sDirectory)) {
$oProcessMap->downloadFile($sProcessUID,$sMainDirectory,$sSubDirectory,$sfile); $oProcessMap = new \processMap(new \DBConnection());
$oProcessMap->downloadFile($sProcessUID,$sMainDirectory,$sSubDirectory,$sfile);
} else {
throw (new \Exception( 'invalid value specified for `path`.'));
}
} catch (Exception $e) { } catch (Exception $e) {
throw $e; throw $e;
} }