aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/oc_photo.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-30 14:14:32 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-30 14:14:32 +0200
commit22a04d8e938d6f2660e6c88cf954d638fc4321eb (patch)
tree30d24a2dc52cc747a8cbfe4fa14c020e4aefcfe9 /apps/contacts/ajax/oc_photo.php
parentdbcd26be684461daac7c406cc3f52a2a810d1126 (diff)
downloadnextcloud-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.php2
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);