forked from Wavyzz/dolibarr
Fix: Pb with file attachment if mail is HTML
This commit is contained in:
@@ -1217,7 +1217,7 @@ function img_mime($file)
|
||||
if (eregi('\.(png|bmp|jpg|jpeg|gif)',$file)) $mime='image';
|
||||
if (eregi('\.(mp3|ogg|au)',$file)) $mime='audio';
|
||||
if (eregi('\.(avi|mvw|divx|xvid)',$file)) $mime='video';
|
||||
if (eregi('\.(zip|rar|divx|xvid)',$file)) $mime='archive';
|
||||
if (eregi('\.(zip|rar|gz|tgz|z|cab)',$file)) $mime='archive';
|
||||
$alt='Mime type: '.$mime;
|
||||
|
||||
$mime.='.png';
|
||||
|
||||
Reference in New Issue
Block a user