mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
ADDED_LINKS was completely broken. Seems to have been comparing links in the old text to.... links in the old text!
This commit is contained in:
parent
fc1ecd6caa
commit
61ad9a0aca
|
@ -900,7 +900,7 @@ class AbuseFilter {
|
|||
}
|
||||
|
||||
// Added links...
|
||||
$editInfo = $article->prepareTextForEdit( $old_text, $revid );
|
||||
$editInfo = $article->prepareTextForEdit( $new_text, $revid );
|
||||
$newLinks = array_keys( $editInfo->output->getExternalLinks() );
|
||||
$vars['ALL_LINKS'] = implode( "\n", $newLinks );
|
||||
$vars['ADDED_LINKS'] = implode( "\n", array_diff( $newLinks, array_intersect( $newLinks, $oldLinks ) ) );
|
||||
|
|
Loading…
Reference in a new issue