makeing <href></href> clickable again

This commit is contained in:
Ralf Becker 2010-04-23 16:08:04 +00:00
parent 42e3a50e8f
commit d4869ec11a

View File

@ -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','&lt;\\1href&gt;<a href="\\2">\\2</a>&lt;/\\3href&gt;<br />',$value);
}
else
{