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
1fac8112a9
commit
5a4f03cf7b
@ -143,7 +143,9 @@ class html
|
|||||||
static function activate_links($content)
|
static function activate_links($content)
|
||||||
{
|
{
|
||||||
if (!$content || strlen($content) < 20) return $content; // performance
|
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
|
// Exclude everything which is already a link
|
||||||
$NotAnchor = '(?<!"|href=|href\s=\s|href=\s|href\s=)';
|
$NotAnchor = '(?<!"|href=|href\s=\s|href=\s|href\s=)';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user