Bug #86921
closedLinkvalidator reports exception on links with tilde (~)
100%
Description
Error message: Exception: NAMEPREP: Prohibited input U+0000007E
Use a link with tilde
TYPO3 version: 9-dev (master)
Updated by Sybille Peters about 6 years ago
- Related to Bug #85069: Linkvalidator reports links to pages with certain cookie-alerts as broken added
Updated by Sybille Peters about 6 years ago
- Related to Bug #80139: Tilde in base URL causes exception added
Updated by Dmitry Dulepov over 5 years ago
Following the discussion with idna_convert guys, it is linkvalidator, who calls a wrong method. Here is a patch:
--- a/typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php +++ b/typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php @@ -209,7 +209,7 @@ 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';
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61495
Updated by Dmitry Dulepov over 5 years ago
The fix is contributed by the University of Basel.
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61495
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61495
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61592
Updated by Dmitry Dulepov about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2621b322738280d0a79350073a345f7a67d3787d.
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed