We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Get url parameter

Hi,

I encounterd a problem with getQuery() method of request. For example i have url like /test?a=<vv, when i get parameter 'a' with getQuery() it returns empty, while the $_GET variable has it value <vv ! Is there any filter between php $_GET variable & Request class that remove some suspicious value or it is a bug?

Which version are you using? It works fine for me with 2.0.7



5.7k

yes im using 2.0.7, but it filtered!

Which version are you using? It works fine for me with 2.0.7

Strange... what is the client that sends the request? (browser/curl/etc...) < is not a valid character, so it should be escaped to %3C when the server receives the request URL



5.7k

yes it's FF browser, < is not valid, but $_GET has it without problem & getQuery() get data from it ya? so it's strange!