Revision: 2150
http://sourceforge.net/p/hastymail/code/2150
Author: sailfrog
Date: 2013-07-15 18:52:48 +0000 (Mon, 15 Jul 2013)
Log Message:
-----------
allow text/vcard mime type in contacts vcard upload
Modified Paths:
--------------
trunk/hastymail2/lib/post_action_classes/contacts.php
Modified: trunk/hastymail2/lib/post_action_classes/contacts.php
===================================================================
--- trunk/hastymail2/lib/post_action_classes/contacts.php 2013-02-05 21:30:25 UTC (rev 2149)
+++ trunk/hastymail2/lib/post_action_classes/contacts.php 2013-07-15 18:52:48 UTC (rev 2150)
@@ -160,7 +160,7 @@
if (!empty($ufiles)) {
if (!$ufiles['error']) {
$type = strtolower($ufiles['type']);
- if (strtolower(trim($type)) == 'text/x-vcard' || strtolower(trim($type)) == 'text/directory' || strtolower(trim($type)) == 'application/octet-stream') {
+ if (strtolower(trim($type)) == 'text/x-vcard' || strtolower(trim($type)) == 'text/vcard' || strtolower(trim($type)) == 'text/directory' || strtolower(trim($type)) == 'application/octet-stream') {
$src = $ufiles['tmp_name'];
$size = $ufiles['size'];
if ($ufiles['size']) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|