Bug #20519
closed
IDN Domain names handled incorrectly in parts of the backend
Added by Jochen Weiland about 15 years ago.
Updated over 6 years ago.
Category:
Backend User Interface
Estimated time:
(Total: 0.00 h)
Description
If using an IDN (international domain name) like müller.de, the loading of the right frame fails under certain conditions. This is because the domain name is encoded incorrectly.
If you are working with an IDN in the BE and (for example) hide/unhide a page using the context menu (right click) in the page tree, the right frame will not be loaded because of an invalid domain name. Another way to reproduce this is by editing page properties from context menu of the page tree (when closing the right frame).
In older browsers you could bypass this by simply using the punycode version of the domain name (i.e. xn--mller-kva.de instead of müller.de). But now browser will convert the punycode back to IDN.
(issue imported from #M11208)
Files
The Problem is that the js code of the context menu adds the complete location including the hostname urlencoded to the returnUrl parameters. Which leads to problems when trying to redirect to the domain with the urlencoded umlauts.
The solution is simply to add only the path and parameter parts of the URI. The host will automatically be added in the correct way by t3lib_div::locationHeaderUrl().
Are there other places besides the context menu and the context menu in filelist module (page properties,paste,delete,hide,unhide etc.) where the redirect error occurs?
I found no other problems in 4.2.6 and trunk with punycode domains yet.
- Subject changed from IDN Domain names handelt incorrectly in parts of the backend to IDN Domain names handled incorrectly in parts of the backend
- Target version deleted (
0)
How to test:
Run TYPO3 on IDN domain like xn--tst-qla.org (täst.org). Note that you need a TLD which supports IDN domains (see https://secure.wikimedia.org/wikipedia/de/wiki/Internationalizing_Domain_Names_in_Applications#Zeichens.C3.A4tze) otherwise the browser will just show up the xn- domain and everything will work because there is no wrong decoding.
Simply add something like
ServerAlias xn--tst-qla.org
to your vhost conf and to /etc/hosts
127.0.0.1 xn--tst-qla.org
Since the pagetree has changed you can test this now by saving an edited or renamed file in the file list module.
Or be clicking on edit in the context menu of a record. Error will occur on saving the record.
Patch set 1 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Patch set 2 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Patch set 3 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Patch set 1 of change Ieb9b3ec921416a85fe6e56826cf66b57c61ffcbc has been pushed to the review server.
It is available at http://review.typo3.org/2666
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Category set to Backend User Interface
- Assignee set to Steffen Gebert
- Target version set to 4.5.4
- Status changed from Resolved to Closed
Also available in: Atom
PDF