Loading core/lib/Drupal/Core/Security/RequestSanitizer.php +4 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Utility\UrlHelper; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; /** * Sanitizes user input. Loading Loading @@ -40,6 +41,9 @@ class RequestSanitizer { * The sanitized request. */ public static function sanitize(Request $request, array $safe_keys, $log_sanitized_keys = FALSE) { if ($request->getMethod() !== $request->getRealMethod() && $request->isMethodSafe()) { throw new BadRequestHttpException("Changing a request's method to a safe method is not supported."); } if (!$request->attributes->get(self::SANITIZED, FALSE)) { $update_globals = FALSE; $bags = [ Loading Loading
core/lib/Drupal/Core/Security/RequestSanitizer.php +4 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Utility\UrlHelper; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; /** * Sanitizes user input. Loading Loading @@ -40,6 +41,9 @@ class RequestSanitizer { * The sanitized request. */ public static function sanitize(Request $request, array $safe_keys, $log_sanitized_keys = FALSE) { if ($request->getMethod() !== $request->getRealMethod() && $request->isMethodSafe()) { throw new BadRequestHttpException("Changing a request's method to a safe method is not supported."); } if (!$request->attributes->get(self::SANITIZED, FALSE)) { $update_globals = FALSE; $bags = [ Loading