1
0
mirror of synced 2025-03-22 07:53:49 +03:00

Merge pull request #35 from brikou/master

[DDC-1136] prevent backup file to be recognized as valid Entity file
This commit is contained in:
Benjamin Eberlei 2011-05-12 05:41:31 -07:00
commit 814473c27d

View File

@ -183,7 +183,7 @@ public function <methodName>()
}
if ($this->_backupExisting && file_exists($path)) {
$backupPath = dirname($path) . DIRECTORY_SEPARATOR . "~" . basename($path);
$backupPath = dirname($path) . DIRECTORY_SEPARATOR . basename($path) . "~";
if (!copy($path, $backupPath)) {
throw new \RuntimeException("Attempt to backup overwritten entitiy file but copy operation failed.");
}