mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
revert of the change in r28264 as it would allow crossside scripting
This commit is contained in:
parent
5a4f03cf7b
commit
e99af0dfd6
@ -143,9 +143,7 @@ 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