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
resourceloader: Add $modules parameter to makeVersionQuery()
[lhc/web/wiklou.git]
/
includes
/
LinkFilter.php
diff --git
a/includes/LinkFilter.php
b/includes/LinkFilter.php
index
a4e94da
..
e4a5f96
100644
(file)
--- a/
includes/LinkFilter.php
+++ b/
includes/LinkFilter.php
@@
-91,7
+91,7
@@
class LinkFilter {
/**
* Canonicalize a hostname for el_index
/**
* Canonicalize a hostname for el_index
- * @param string $hos
e
+ * @param string $hos
t
* @return string
*/
private static function indexifyHost( $host ) {
* @return string
*/
private static function indexifyHost( $host ) {
@@
-292,7
+292,7
@@
class LinkFilter {
// The constant prefix is smaller than el_index_60, so we use a LIKE
// for a prefix search.
return [
// The constant prefix is smaller than el_index_60, so we use a LIKE
// for a prefix search.
return [
- "{$p}_index_60" . $db->buildLike(
[ $index, $db->anyString() ]
),
+ "{$p}_index_60" . $db->buildLike(
$index, $db->anyString()
),
"{$p}_index" . $db->buildLike( $like ),
];
}
"{$p}_index" . $db->buildLike( $like ),
];
}
@@
-311,6
+311,7
@@
class LinkFilter {
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
$db = wfGetDB( DB_REPLICA );
*/
public static function makeLikeArray( $filterEntry, $protocol = 'http://' ) {
$db = wfGetDB( DB_REPLICA );
+ $like = [];
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );
$target = $protocol . $filterEntry;
$bits = wfParseUrl( $target );