mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Merge branch 'support/2.5'
# Conflicts: # datamodels/2.x/itop-hub-connector/zh_cn.dict.itop-hub-connector.php # lib/tcpdf/CHANGELOG.TXT # lib/tcpdf/composer.json # lib/tcpdf/include/tcpdf_fonts.php # lib/tcpdf/include/tcpdf_images.php # lib/tcpdf/include/tcpdf_static.php # lib/tcpdf/tcpdf.php
This commit is contained in:
@@ -184,7 +184,7 @@ EOF
|
||||
$sFile = utils::ReadParam('file', '', false, 'raw_data');
|
||||
$oBackup = new DBBackupScheduled();
|
||||
$sBackupDir = APPROOT.'data/backups/';
|
||||
$sPathNoDotDotPattern = '/^((?!\/\.\.\/).)*$/';
|
||||
$sPathNoDotDotPattern = "/^((?![\/\\\\]\.\.[\/\\\\]).)*$/";
|
||||
if(preg_match($sPathNoDotDotPattern, $sBackupDir.$sFile) == 1)
|
||||
{
|
||||
$oBackup->DownloadBackup($sBackupDir.$sFile);
|
||||
|
||||
Reference in New Issue
Block a user