aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile_photo.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
commit2438c6e45d47ca194b51f99ddf113112fbb6ccb9 (patch)
tree27c32cdfbaa3a63877b118609b5177c705ff747a /mod/profile_photo.php
parent7cc8c369cb6a01cffb58215966844b53794f32f4 (diff)
downloadvolse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.gz
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.bz2
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.zip
png support: update database.sql, fix some typos, fix tinymce image browser
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r--mod/profile_photo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index 2817f3942..e44707f9b 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -109,7 +109,8 @@ function profile_photo_post(&$a) {
$filename = basename($_FILES['userfile']['name']);
$filesize = intval($_FILES['userfile']['size']);
$filetype = $_FILES['userfile']['type'];
-
+ if ($filetype=="") $filetype=guess_image_type($filename);
+
$maximagesize = get_config('system','maximagesize');
if(($maximagesize) && ($filesize > $maximagesize)) {