mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Removing quotes from test data in RestfulServiceTest, it gives different results depending on magic_quotes_gpc setting on PHP configuration (merged from r80132).
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@114266 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2d1d5363c8
commit
0e5d48fa6a
@ -7,7 +7,7 @@ class RestfulServiceTest extends SapphireTest {
|
|||||||
$test1url = 'RestfulServiceTest_Controller/';
|
$test1url = 'RestfulServiceTest_Controller/';
|
||||||
$test1params = array(
|
$test1params = array(
|
||||||
'test1a' => 4352655636.76543, // number test
|
'test1a' => 4352655636.76543, // number test
|
||||||
'test1b' => '$&+,/:;=?@#"\'%', // special char test. These should all get encoded
|
'test1b' => '$&+,/:;=?@#%', // special char test. These should all get encoded
|
||||||
'test1c' => 'And now for a string test' // string test
|
'test1c' => 'And now for a string test' // string test
|
||||||
);
|
);
|
||||||
$connection->setQueryString($test1params);
|
$connection->setQueryString($test1params);
|
||||||
@ -20,7 +20,7 @@ class RestfulServiceTest extends SapphireTest {
|
|||||||
$connection->setQueryString(array());
|
$connection->setQueryString(array());
|
||||||
$test2params = array(
|
$test2params = array(
|
||||||
'test2a' => 767545678.76887, // number test
|
'test2a' => 767545678.76887, // number test
|
||||||
'test2b' => '%\'"@?=;:/,$', // special character checks
|
'test2b' => '%@?=;:/,$', // special character checks
|
||||||
'test2c' => 'And now for a string test', // string test
|
'test2c' => 'And now for a string test', // string test
|
||||||
);
|
);
|
||||||
$test2suburl = 'RestfulServiceTest_Controller/?';
|
$test2suburl = 'RestfulServiceTest_Controller/?';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user