mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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;
|
||||
|
||||
use function GuzzleHttp\Psr7\parse_query;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
@ -138,7 +137,7 @@ class ParameterConfirmationToken
|
||||
|
||||
// Filter backURL if it contains the given request parameter
|
||||
list(,$query) = explode('?', $backURL);
|
||||
$queryArgs = parse_query($query);
|
||||
parse_str($query, $queryArgs);
|
||||
$name = $this->getName();
|
||||
if (isset($queryArgs[$name])) {
|
||||
return $queryArgs[$name];
|
||||
|
Loading…
Reference in New Issue
Block a user