UrlHelper::GZUNCOMPRESS_LIMIT

Same name and namespace in other branches
  1. main core/lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\UrlHelper::GZUNCOMPRESS_LIMIT

The length limit for gzuncompress().

Because query strings come from the request, set a 10000 limit to avoid implausibly large compressed strings being sent.

File

core/lib/Drupal/Component/Utility/UrlHelper.php, line 25

Class

UrlHelper
Helper class URL based methods.

Namespace

Drupal\Component\Utility

Code

protected const GZUNCOMPRESS_LIMIT = 10000;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.