From 80de3179a10b00816c656e8cbeae19c8febcca92 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 21 Mar 2001 00:14:04 +0000 Subject: [PATCH] Fix URL parsing on vcard --- addressbook/import.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addressbook/import.php b/addressbook/import.php index 6e7fa0f8ca..315e356d49 100644 --- a/addressbook/import.php +++ b/addressbook/import.php @@ -119,10 +119,13 @@ } } else { while ($data = fgets($fp,8000)) { - list($name,$value) = split(':', $data); + list($name,$value,$extra) = split(':', $data); if (strtolower(substr($name,0,5)) == 'begin') { $buffer = $this->import_start_record($buffer); } + if (substr($value,0,5) == "http") { + $value = $value . ":".$extra; + } if ($name && $value) { reset($this->import); while ( list($fname,$fvalue) = each($this->import) ) {