diff options
| author | Thomas Bruederli <thomas@roundcube.net> | 2013-04-10 23:38:50 +0200 |
|---|---|---|
| committer | Thomas Bruederli <thomas@roundcube.net> | 2013-04-10 23:38:50 +0200 |
| commit | b413bb2b6022a67ae87d1f21ef20158400c6365d (patch) | |
| tree | 2110906f43988161ad7dec59c18f31721714f88c /program | |
| parent | a021d6f1873be1df373ad9cd4985aebb1198c230 (diff) | |
Set minimal permissions to temp files (#148899)
Diffstat (limited to 'program')
| -rw-r--r-- | program/lib/Roundcube/rcube_image.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_image.php b/program/lib/Roundcube/rcube_image.php index a55ba1600..735a0df01 100644 --- a/program/lib/Roundcube/rcube_image.php +++ b/program/lib/Roundcube/rcube_image.php @@ -124,6 +124,7 @@ class rcube_image } if ($result === '') { + @chmod($filename, 0600); return $type; } } @@ -183,6 +184,7 @@ class rcube_image } if ($result) { + @chmod($filename, 0600); return $type; } } @@ -223,6 +225,7 @@ class rcube_image $result = rcube::exec($convert . ' 2>&1 -colorspace RGB -quality 75 {in} {type}:{out}', $p); if ($result === '') { + @chmod($filename, 0600); return true; } } @@ -256,6 +259,7 @@ class rcube_image } if ($result) { + @chmod($filename, 0600); return true; } } |
