mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
fix PHP Warning: preg_replace(): Compilation failed: invalid range in character class
This commit is contained in:
parent
bde2561d58
commit
132cad6ee8
@ -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