File tree 2 files changed +3
-2
lines changed
src/Symfony/Component/HttpKernel
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public function testCheck()
33
33
34
34
$ this ->assertTrue ($ signer ->check ($ signer ->sign ('http://example.com/foo ' )));
35
35
$ this ->assertTrue ($ signer ->check ($ signer ->sign ('http://example.com/foo?foo=bar ' )));
36
+ $ this ->assertTrue ($ signer ->check ($ signer ->sign ('http://example.com/foo?foo=bar&0=integer ' )));
36
37
37
38
$ this ->assertTrue ($ signer ->sign ('http://example.com/foo?foo=bar&bar=foo ' ) === $ signer ->sign ('http://example.com/foo?bar=foo&foo=bar ' ));
38
39
}
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ private function computeHash($uri)
91
91
92
92
private function buildUrl (array $ url , array $ params = array ())
93
93
{
94
- ksort ($ params );
95
- $ url ['query ' ] = http_build_query ($ params );
94
+ ksort ($ params, SORT_STRING );
95
+ $ url ['query ' ] = http_build_query ($ params, '' , ' & ' );
96
96
97
97
$ scheme = isset ($ url ['scheme ' ]) ? $ url ['scheme ' ].':// ' : '' ;
98
98
$ host = isset ($ url ['host ' ]) ? $ url ['host ' ] : '' ;
You can’t perform that action at this time.
0 commit comments