Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix url-encoding in sitemap [see #8848] #8849
to create the sitemap all contao-urls were
afterwards, some special entities were recovered (for example slashes and questionmarks):
however, colons were only recovered in combination with
i guess the urls need to be treated specially to obtain valid XML documents?
here i propose to skip the
referenced this pull request
Feb 7, 2018
@binfalse can you please try if the following code works for your use case?
$strUrl = explode('/', $strUrl, 4); $strUrl = rawurlencode($strUrl); $strUrl = str_replace(array('%2F', '%3F', '%3D', '%26', '%25'), array('/', '?', '=', '&', '%'), $strUrl); $strUrl = implode('/', $strUrl); $strUrl = ampersand($strUrl, true);
Ok, so as briefly discussed with @ausi, using
So we should go for @ausi's solution (with an additional
And we should probably decode