Steps to replicate the issue (include links if applicable):
- Add a protocol-relative URL to a page (Do not link to your site, such links are not stored)
- Create an abuse filter acting with the variable old_links, be sure the variable is evaluated to trigger the abuse filter (for example by having it the first condition, for example create a warning abuse filter with '//test.org' in old_links | action == 'edit', which gets triggered on every edit)
- Do another edit on the page with the protocol-relative URL
- Be sure that abuse filter give you a warning about a bad action
- Go to Special:AbuseLog and open "examine" for the recent item (page should be linked to Special:AbuseFilter/examine/log/<new id>)
What happens?:
The protocol-relative URL is shown twice in the list for the variable old_links
What should have happened instead?:
The url should be listed only once
Software version (skip for WMF-hosted wikis like Wikipedia): master
Other information (browser name/version, screenshots, etc.): not needed