diff options
author | Olivier Paroz <github@oparoz.com> | 2015-01-25 16:38:32 +0100 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-03-19 16:09:02 +0100 |
commit | 8d6b2b886752f974ad4db61fda8a38df9b5bf009 (patch) | |
tree | 77f23e699a16e00ce1cb8a911a6bef706f437b73 /lib | |
parent | 0868e49663a8619809a35b7879e26a83b58ec1b2 (diff) | |
download | nextcloud-server-8d6b2b886752f974ad4db61fda8a38df9b5bf009.tar.gz nextcloud-server-8d6b2b886752f974ad4db61fda8a38df9b5bf009.zip |
Keep the extension in temp files
The file extension helps some applications like ImageMagick to properly
process files
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/tempmanager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/tempmanager.php b/lib/private/tempmanager.php index 60b9c9dc0d4..213d57b2e28 100644 --- a/lib/private/tempmanager.php +++ b/lib/private/tempmanager.php @@ -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; } /** |