Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UriSigner.php

function UriSigner::checkRequest

File

vendor/symfony/http-foundation/UriSigner.php, line 117

Class

UriSigner
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\HttpFoundation

Code

public function checkRequest(Request $request) : bool {
    $qs = ($qs = $request->server
        ->get('QUERY_STRING')) ? '?' . $qs : '';
    // we cannot use $request->getUri() here as we want to work with the original URI (no query string reordering)
    return $this->check($request->getSchemeAndHttpHost() . $request->getBaseUrl() . $request->getPathInfo() . $qs);
}
RSS feed
Powered by Drupal