cvs: pear /Contact_Vcard_Parse Contact_Vcard_Parse.php
| From: | Paul Jones | Date: | Sat, 28 May 2005 15:24:14 +0000 |
| Subject: | cvs: pear /Contact_Vcard_Parse Contact_Vcard_Parse.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32180@lists.php.net to get a copy of this message | ||
pmjones Sat May 28 11:24:14 2005 EDT
Modified files:
/pear/Contact_Vcard_Parse Contact_Vcard_Parse.php
Log:
* fixed bug 4079 "lower case of Type-Definition" -- thanks to valeksa at gmail dot com
for patch
* unescape() now un-escapes colons per the RFC
http://cvs.php.net/diff.php/pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php?r1=1.2&r2=1.3&ty=u
Index: pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php
diff -u pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.2
pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.3
--- pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php:1.2 Sun May 2 09:03:06 2004
+++ pear/Contact_Vcard_Parse/Contact_Vcard_Parse.php Sat May 28 11:24:14 2005
@@ -16,7 +16,7 @@
// | Authors: Paul M. Jones <pmjones@ciaweb.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Contact_Vcard_Parse.php,v 1.2 2004/05/02 13:03:06 pmjones Exp $
+// $Id: Contact_Vcard_Parse.php,v 1.3 2005/05/28 15:24:14 pmjones Exp $
/**
@@ -293,6 +293,7 @@
$text[$key] = $val;
}
} else {
+ $text = str_replace('\:', ':', $text);
$text = str_replace('\;', ';', $text);
$text = str_replace('\,', ',', $text);
$text = str_replace('\n', "\n", $text);
@@ -496,7 +497,7 @@
$split = $this->splitBySemi($text);
// only return first element (the typedef)
- return $split[0];
+ return strtoupper($split[0]);
}