diff --git a/phpgwapi/inc/class.groupdav.inc.php b/phpgwapi/inc/class.groupdav.inc.php
index 8c6cc9b5cf..b686c13f1c 100644
--- a/phpgwapi/inc/class.groupdav.inc.php
+++ b/phpgwapi/inc/class.groupdav.inc.php
@@ -598,9 +598,9 @@ class groupdav extends HTTP_WebDAV_Server
}
$value = htmlspecialchars(array2string($value));
}
- elseif (preg_match('/^https?:\/\//',$value))
+ elseif (preg_match('/\<(D:)?href\>[^<]+\<\/(D:)?href\>/i',$value))
{
- $value = html::a_href($value,$value);
+ $value = preg_replace('/\<(D:)?href\>([^<]+)\<\/(D:)?href\>/i','<\\1href>\\2</\\3href>
',$value);
}
else
{