diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:14:32 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-30 14:14:32 +0200 |
commit | 22a04d8e938d6f2660e6c88cf954d638fc4321eb (patch) | |
tree | 30d24a2dc52cc747a8cbfe4fa14c020e4aefcfe9 /apps/contacts/ajax/oc_photo.php | |
parent | dbcd26be684461daac7c406cc3f52a2a810d1126 (diff) | |
download | nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.tar.gz nextcloud-server-22a04d8e938d6f2660e6c88cf954d638fc4321eb.zip |
don´t hardcode /tmp
Diffstat (limited to 'apps/contacts/ajax/oc_photo.php')
-rw-r--r-- | apps/contacts/ajax/oc_photo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/ajax/oc_photo.php b/apps/contacts/ajax/oc_photo.php index 085d2710f5f..184217f2b72 100644 --- a/apps/contacts/ajax/oc_photo.php +++ b/apps/contacts/ajax/oc_photo.php @@ -42,7 +42,7 @@ if(!isset($_GET['path'])) { } $localpath = OC_Filesystem::getLocalFile($_GET['path']); -$tmpfname = tempnam("/tmp", "occOrig"); +$tmpfname = tempnam(get_temp_dir(), "occOrig"); if(!file_exists($localpath)) { bailOut(OC_Contacts_App::$l10n->t('File doesn\'t exist:').$localpath); |