purple&berries wrote:Incidentally, this problem also exists with usernames. Sanitization is
so important! Go ahead, try to go to my profile.
Everything was being sanitized already from the start (plusminus some massive sql injection vulnerabilities that Dindon pointed out), since xslt does that automatically.
However, xslt does not support variable argument lists, so the url generation function had to be delegated to php... and php itself does not do any escaping of anything, hence the produced url came back with its components raw, unescaped, hence the issue. I think
r1098 sorts that out.