Issue Bug Closed

#89378Preprossing of URLs for conversion to punycode truncates some URLs

Sybille Peters 10/08/19, 18:38 updated 12/23/19, 22:43

Description

The function ExternalLinktype::preprocessUrl truncates some URLs into an empty string.

The function was originally introduced in order to enable URLs with Umlaut in domains, e.g. https://äh.de

These are some of the URLs the function converts into empty strings:

https://www.nbank.de/Unternehmen/Ausbildung-Qualifikation/Weiterbildung-in-Niedersachsen/
https://www.oldenburg.de/startseite/wirtschaft/wirtschaftsfoerderung/beratung-foerderung/gruenderberatung/gruenderforen.html
http://www.nwzonline.de/tv?bcpid=1701167454001&bckey=AQ~~,AAAAAGL7LqU~,aXlKNnCf9d9Tmck-kOc4PGFfCgHjM5JR&bctid=1040702768001
http://www.uni-bremen.de/universitaet/die-uni-im-ueberblick/lageplan/gebaeude/building/120

These will then falsely be reported as broken links.

The function preprocessUrl was originally introduced to handle domains with special characters, see #55155

Reviews 2