Skip to content

Commit

Permalink
[BUGFIX] Make Linkvalidator accept tilde characters in links
Browse files Browse the repository at this point in the history
Before, the Linkvalidator reported links with a tilde as broken. This problem
occurs because the wrong method is called from the idna_convert library.
This change fixes it by calling the proper method.

Resolves: #86921
Releases: 9.5, 8.7
Change-Id: Ie522f50e2f1fe6228c79ca6352ac5d1fad291224
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61592
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Richard Haeser <richard@maxserv.com>
  • Loading branch information
dmitryd authored and Richard Haeser committed Aug 29, 2019
1 parent 7f9dd26 commit 4efc456
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -209,7 +209,7 @@ public function fetchType($value, $type, $key)
protected function preprocessUrl(string $url): string
{
try {
return (new IdnaConvert())->encode($url);
return (new IdnaConvert())->encodeUri($url);
} catch (\Exception $e) {
// in case of any error, return empty url.
$this->errorParams['errorType'] = 'exception';
Expand Down

0 comments on commit 4efc456

Please sign in to comment.