Wrong output escaping in Symfony URL

exenaibDoni

New Member
I'm trying to use url_for() helper function of Symfony to get some URL's for my web application.url_for() function works well if values of get parameters are numeric. But the weird thing is that if a value of a get parameter is a string, then the next get parameter is escaped in a wrong way.For example;\[code\]echo url_for("konu/index?page=1sort=1")=>http://localhost:8080/frontend_dev.php/konu?page=1&sort=1\[/code\]but\[code\]echo url_for("konu/search?query=magnum&page=1&sort=1")=> http://localhost:8080/frontend_dev.php/konu/search/query/magnum/amp%3Bpage/1/sort/1\[/code\]In second example the ampersand is escaped weirdly. It should be & but it's amp;I'm using an Apache/2.2.16 (Win32) server and PHP 5.3.3Is there any solution?
 
Back
Top