[Pkg-owncloud-commits] [php-sabre-vobject] 96/106: Solving an issue when addresses don't have a uri scheme.
David Prévot
taffit at moszumanska.debian.org
Fri Aug 22 15:11:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 4590a8ef7ba08ae9f7de82740ae1635522d7268a
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Thu Aug 14 16:51:00 2014 -0400
Solving an issue when addresses don't have a uri scheme.
---
lib/Property/ICalendar/CalAddress.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/Property/ICalendar/CalAddress.php b/lib/Property/ICalendar/CalAddress.php
index a0c8348..f0eb639 100644
--- a/lib/Property/ICalendar/CalAddress.php
+++ b/lib/Property/ICalendar/CalAddress.php
@@ -51,6 +51,9 @@ class CalAddress extends Text {
public function getNormalizedValue() {
$input = $this->getValue();
+ if (!strpos($input, ':')) {
+ return $input;
+ }
list($schema, $everythingElse) = explode(':', $input, 2);
return strtolower($schema) . ':' . $everythingElse;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list