mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
fixed bug [ 1106069 ] bad hypertext link creation when '&' is in the URL
This commit is contained in:
parent
c427c5d8af
commit
b1ed2f8d61
@ -110,7 +110,7 @@ class html
|
||||
// First match things beginning with http:// (or other protocols)
|
||||
$Protocol = '(http|ftp|https):\/\/';
|
||||
$Domain = '([\w]+.[\w]+)';
|
||||
$Subdir = '([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?';
|
||||
$Subdir = '([\w\-\.,@?^=%&;:\/~\+#]*[\w\-\@?^=%&\/~\+#])?';
|
||||
$Expr = '/' . $NotAnchor . $Protocol . $Domain . $Subdir . '/i';
|
||||
|
||||
$result = preg_replace( $Expr, "<a href=\"$0\" target=\"_blank\">$2$3</a>", $result );
|
||||
|
Loading…
Reference in New Issue
Block a user