contao/core — Issue #3781: Contao 2.11.x - idnaEncodeUrl() no longer supports insert-tags
Author: winanscreative
Created: 2012-01-08 16:28:00+00:00
State: open

The commit here [7db9c9b](https://github.com/contao/core/commit/7db9c9b1fc94238534833ee1dd79dc7e378a3273) has an issue with parsing insert tags as URLs. I added a comment to the closed ticket [#3649](https://github.com/contao/core/issues/3649) :

You can see that any insert-tag would then have 'http://' applied in front of it, which obviously breaks things.

I fixed it by simply checking for an insert tag before adding the scheme if there is none, but you may want to check for insert-tags further upstream.

if (!isset($arrUrl['scheme']) && !preg_match('/\{\{([^\}]+)\}\}/', $strUrl))