mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fix PHP Warning: preg_replace(): Compilation failed: invalid range in character class
This commit is contained in:
parent
45b4c2112c
commit
7928fb9f4a
@ -47,7 +47,7 @@ class Html
|
||||
// First match things beginning with http:// (or other protocols)
|
||||
$optBracket0 = '(<|<)';
|
||||
$Protocol = '(http:\/\/|(ftp:\/\/|https:\/\/))'; // only http:// gets removed, other protocolls are shown
|
||||
$Domain = '([\w-]+\.[\w-.]+)';
|
||||
$Domain = '([\w-]+\.[\w\-.]+)';
|
||||
$Subdir = '([\w\-\.,@?^=%&;:\/~\+#]*[\w\-\@?^=%&\/~\+#])?';
|
||||
$optBracket = '(>|>)';
|
||||
$Expr = '/' .$optBracket0. $NotAnchor . $Protocol . $Domain . $Subdir . $optBracket . '/i';
|
||||
|
Loading…
Reference in New Issue
Block a user