Keep the extension in temp files

The file extension helps some applications like ImageMagick to properly
process files
This commit is contained in:
Olivier Paroz 2015-01-25 16:38:32 +01:00
parent 0868e49663
commit 8d6b2b8867
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class TempManager implements ITempManager {
}
protected function generatePath($postFix) {
return $this->tmpBaseDir . '/oc_tmp_' . md5(time() . rand()) . $postFix;
return $this->tmpBaseDir . '/oc_tmp_' . md5(time() . rand()) . '.' . $postFix;
}
/**