From 7e27ae3459eadde374bcf5db0b826ec7fd54bd0c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 May 2012 08:03:39 +0000 Subject: [PATCH] fixes: #1180 Fixed pronlems with unsaved user pictures, due to caches file sizes. Thanks to 'arodier' git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@21129 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 0de16e518..437ac728f 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1448,6 +1448,7 @@ class user extends plugin $this->jpegPhoto= "*removed*"; } + clearstatcache(); $fd = fopen ($filename, "rb"); $this->photoData= fread ($fd, filesize ($filename)); session::set('binary',$this->photoData); @@ -1461,6 +1462,7 @@ class user extends plugin /* Load certificate from file to object */ function set_cert($cert, $filename) { + clearstatcache(); if(!$this->acl_is_writeable("Certificate",(!is_object($this->parent) && !session::is_set('edit')))) return; $fd = fopen ($filename, "rb"); if (filesize($filename)>0) { -- 2.30.2