Bug #20519
closedIDN Domain names handled incorrectly in parts of the backend
100%
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
Updated by Joh. Feustel almost 15 years ago
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.
Updated by Chris topher about 13 years ago
- 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)
Updated by Joh. Feustel almost 13 years ago
- File 20519_was_11208_v4.diff 20519_was_11208_v4.diff added
Updated by Joh. Feustel almost 13 years ago
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.
Updated by Mr. Hudson almost 13 years ago
Patch set 1 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Updated by Mr. Hudson almost 13 years ago
Patch set 2 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Updated by Mr. Hudson almost 13 years ago
Patch set 3 of change Iddd0f821bdf61d98f898fd3cdf07b0af83e081d3 has been pushed to the review server.
It is available at http://review.typo3.org/2528
Updated by Mr. Hudson almost 13 years ago
Patch set 1 of change Ieb9b3ec921416a85fe6e56826cf66b57c61ffcbc has been pushed to the review server.
It is available at http://review.typo3.org/2666
Updated by Joh. Feustel almost 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 0f6b299e32e191ca28dc72a591a6263c67262f07.
Updated by Steffen Gebert almost 13 years ago
- Category set to Backend User Interface
- Assignee set to Steffen Gebert
- Target version set to 4.5.4
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Resolved to Closed