Page MenuHomePhabricator

textlibcompileLinkR() should not import url that ends with brackets
Closed, ResolvedPublic

Description

harvest_template.py script import brackets in url value

| site = {{URL|http://www.chateau-cordes-orcival.com}}

is sent as

http://www.chateau-cordes-orcival.com}}

https://www.wikidata.org/w/index.php?title=Q1333377&diff=prev&oldid=1906676539

Probably it's necessary to add ending brackets in the "noinside" exclude list in pywikibot/textlib.py compileLinkR() function

Event Timeline

I have cleanup few items using this request: https://w.wiki/6nRN

Xqt triaged this task as High priority.

Change 926508 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] add curly brackets to notAtEnd string in textlib.compileLinkR

https://gerrit.wikimedia.org/r/926508

Change 926508 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] add curly brackets to notAtEnd string in textlib.compileLinkR

https://gerrit.wikimedia.org/r/926508