dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add MessagesBi.php"
[lhc/web/wiklou.git]
/
includes
/
LinkFilter.php
diff --git
a/includes/LinkFilter.php
b/includes/LinkFilter.php
index
17b4d56
..
3b03f87
100644
(file)
--- a/
includes/LinkFilter.php
+++ b/
includes/LinkFilter.php
@@
-65,7
+65,7
@@
class LinkFilter {
* @return string Regex pattern, for preg_match()
*/
private static function makeRegex( $filterEntry, $protocol ) {
* @return string Regex pattern, for preg_match()
*/
private static function makeRegex( $filterEntry, $protocol ) {
- $regex = '!' . preg_quote( $protocol );
+ $regex = '!' . preg_quote( $protocol
, '!'
);
if ( substr( $filterEntry, 0, 2 ) == '*.' ) {
$regex .= '(?:[A-Za-z0-9.-]+\.|)';
$filterEntry = substr( $filterEntry, 2 );
if ( substr( $filterEntry, 0, 2 ) == '*.' ) {
$regex .= '(?:[A-Za-z0-9.-]+\.|)';
$filterEntry = substr( $filterEntry, 2 );