mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Web\UrlTest: test should use %20 instead of +
We MUST use rawurlencode everywhere to avoid potential conflicts with URLs created on JS side. refs #6604
This commit is contained in:
parent
db3ef8fbd0
commit
3f65f3447d
@ -21,7 +21,7 @@ class UrlTest extends BaseTestCase
|
||||
$url = Url::fromRequest();
|
||||
$this->assertEquals(
|
||||
'/path/to/my/test/url.html?param1=value1&param2=value2',
|
||||
$url->getAbsoluteUrl(),
|
||||
$url->getAbsoluteUrl('&'),
|
||||
'Url::fromRequest does not reassemble the correct url from the global request'
|
||||
);
|
||||
}
|
||||
@ -119,7 +119,7 @@ class UrlTest extends BaseTestCase
|
||||
*/
|
||||
public function testWhetherFromPathProperlyRecognizesAndDecodesQueryParameters()
|
||||
{
|
||||
$url = Url::fromPath('/my/test/url.html?param1=%25arg1¶m2=arg+2'
|
||||
$url = Url::fromPath('/my/test/url.html?param1=%25arg1¶m2=arg%202'
|
||||
. '¶m3[]=1¶m3[]=2¶m3[]=3¶m4[key1]=val1¶m4[key2]=val2');
|
||||
|
||||
$this->assertEquals(
|
||||
|
Loading…
x
Reference in New Issue
Block a user