You are here

private function Request::getUrlencodedPrefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getUrlencodedPrefix()
1 call to Request::getUrlencodedPrefix()
Request::prepareBaseUrl in vendor/symfony/http-foundation/Request.php
Prepares the base URL.

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

private function getUrlencodedPrefix($string, $prefix) {
  if (0 !== strpos(rawurldecode($string), $prefix)) {
    return false;
  }
  $len = strlen($prefix);
  if (preg_match(sprintf('#^(%%[[:xdigit:]]{2}|.){%d}#', $len), $string, $match)) {
    return $match[0];
  }
  return false;
}