mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7548 from open-sausages/pulls/4.0/guzzle-dep
BUG Use parse_str in place of guzzle library
This commit is contained in:
commit
49ca45f6d9
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace SilverStripe\Core\Startup;
|
namespace SilverStripe\Core\Startup;
|
||||||
|
|
||||||
use function GuzzleHttp\Psr7\parse_query;
|
|
||||||
use SilverStripe\Control\Controller;
|
use SilverStripe\Control\Controller;
|
||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Control\HTTPResponse;
|
use SilverStripe\Control\HTTPResponse;
|
||||||
@ -138,7 +137,7 @@ class ParameterConfirmationToken
|
|||||||
|
|
||||||
// Filter backURL if it contains the given request parameter
|
// Filter backURL if it contains the given request parameter
|
||||||
list(,$query) = explode('?', $backURL);
|
list(,$query) = explode('?', $backURL);
|
||||||
$queryArgs = parse_query($query);
|
parse_str($query, $queryArgs);
|
||||||
$name = $this->getName();
|
$name = $this->getName();
|
||||||
if (isset($queryArgs[$name])) {
|
if (isset($queryArgs[$name])) {
|
||||||
return $queryArgs[$name];
|
return $queryArgs[$name];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user