nette/http

\Nette\Http\Url dots in query parameters

slischka opened this issue · 4 comments

Version: latest

Bug Description

In query parameters dots are replaces to underscode.
The bug is from internal PHP function parse_str, where . are replaced to _.

Steps To Reproduce

$url = new \Nette\Http\Url('test.xy?test.text=text');
return (string) $url; //returns: 'test.xy?test_text=text'

Expected Behavior

should return: test.xy?test.text=text

dg commented

Can you fix it?

I can try. But not sure :D

I just found, you have just fixed this problem in PR #39
It seems like better solution then I was think about :D

dg commented

Ok, I merged it.