mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
revert changes from r28263 as it would allow for cross site scripting
This commit is contained in:
parent
ace390a7a3
commit
b13d33580b
@ -144,9 +144,6 @@ 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