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

Breadcrumb

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

function Request::isIisRewrite

Is this IIS with UrlRewriteModule?

This method consumes, caches and removed the IIS_WasUrlRewritten env var, so we don't inherit it to sub-requests.

2 calls to Request::isIisRewrite()
Request::getUrlencodedPrefix in vendor/symfony/http-foundation/Request.php
Returns the prefix as encoded in the string when the string starts with the given prefix, null otherwise.
Request::prepareRequestUri in vendor/symfony/http-foundation/Request.php

File

vendor/symfony/http-foundation/Request.php, line 2099

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

private function isIisRewrite() : bool {
    if (1 === $this->server
        ->getInt('IIS_WasUrlRewritten')) {
        $this->isIisRewrite = true;
        $this->server
            ->remove('IIS_WasUrlRewritten');
    }
    return $this->isIisRewrite;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal