mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-12 00:38:23 +00:00
Use DISTINCT on LazyVariableComputer::getLinksFromDB
A protocol-relative URL has two entries for el_to in externallinks table, the different is on the el_index colum Bug: T314373 Change-Id: I3d6229aaa10a089baf15d5ba3407f6a8870429e3
This commit is contained in:
parent
a017d73509
commit
9c3fc24f85
|
@ -415,7 +415,8 @@ class LazyVariableComputer {
|
|||
'externallinks',
|
||||
'el_to',
|
||||
[ 'el_from' => $id ],
|
||||
__METHOD__
|
||||
__METHOD__,
|
||||
[ 'DISTINCT' ]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue