mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
png support: update database.sql, fix some typos, fix tinymce image browser
This commit is contained in:
parent
7cc8c369cb
commit
2438c6e45d
6 changed files with 35 additions and 20 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue