improving check finfo extension into filesave svg edit module

skala
Juan Carlos Raña 13 years ago
parent cd0623c678
commit a611b87389
  1. 2
      main/inc/lib/svg-edit/extensions/filesave.php

@ -83,7 +83,7 @@ if ($suffix!= 'svg' && $suffix!= 'png'){
//a bit mime security
//comment because finfo seems stopping the save process files in some php vers.
/*
if (phpversion() >= '5.3') {
if (phpversion() >= '5.3' && extension_loaded('fileinfo')) {
$finfo = new finfo(FILEINFO_MIME);
$current_mime=$finfo->buffer($contents);
finfo_close($finfo);

Loading…
Cancel
Save