views:

88

answers:

0

Hi, 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;

echo url_for("konu/index?page=1sort=1")

=>http://localhost:8080/frontend_dev.php/konu?page=1&sort=1

but

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

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.3

Is there any solution?