mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
fixing a problem regarding the activation of links encoded with htmlspecialchars
This commit is contained in:
parent
8498cd7f3d
commit
ace390a7a3
@ -144,7 +144,9 @@ class html
|
||||
static function activate_links($content)
|
||||
{
|
||||
if (!$content || strlen($content) < 20) return $content; // performance
|
||||
|
||||
// this seems to be needed as the preg_replace to match things beginning with http:// (or other protocols)
|
||||
// seems to be throwing out & and leaving &; - which is breaking links.
|
||||
$content = htmlspecialchars_decode($content);
|
||||
// Exclude everything which is already a link
|
||||
$NotAnchor = '(?<!"|href=|href\s=\s|href=\s|href\s=)';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user