File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public function testCheck()
3333
3434 $ this ->assertTrue ($ signer ->check ($ signer ->sign ('http://example.com/foo ' )));
3535 $ 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 ' )));
3637
3738 $ this ->assertTrue ($ signer ->sign ('http://example.com/foo?foo=bar&bar=foo ' ) === $ signer ->sign ('http://example.com/foo?bar=foo&foo=bar ' ));
3839 }
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ private function computeHash($uri)
9191
9292 private function buildUrl (array $ url , array $ params = array ())
9393 {
94- ksort ($ params );
95- $ url ['query ' ] = http_build_query ($ params );
94+ ksort ($ params, SORT_STRING );
95+ $ url ['query ' ] = http_build_query ($ params, '' , ' & ' );
9696
9797 $ scheme = isset ($ url ['scheme ' ]) ? $ url ['scheme ' ].':// ' : '' ;
9898 $ host = isset ($ url ['host ' ]) ? $ url ['host ' ] : '' ;
You can’t perform that action at this time.
0 commit comments