Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decode URL-encoded strings
<?php rawurldecode(string $string): string
<?php if (preg_match('/filename\*=utf-8\'\'(.+)$/i', $header, $matches)) {
return rawurldecode($matches[1]);
}
if (preg_match('/.*?filename="(.+?)"/', $header, $matches)) {
<?php public function decodedPath()
{
return rawurldecode($this->path());
}
<?php {
$path = rtrim($request->getPathInfo(), '/') ?: '/';
return preg_match($route->getCompiled()->getRegex(), rawurldecode($path));
}
}
<?php continue;
}
$url[$param] = rawurldecode($value);
}
$params = self::parseDatabaseUrlScheme($url['scheme'] ?? null, $params);
<?php }
$path = str_replace('//', '/', $path);
$path = rawurldecode($path);
if (($lengthPath > 0) && substr($path, $lengthPath, 1) == Getter::getDelimiter()) {
<?php if (false !== strpos($url, '%')) {
$url = rawurldecode($url);
}
$urls[$index] = realpath($url);
<?php $this->process->execute('git remote -v', $output, $cwd);
if (Preg::isMatch('{^(?:composer|origin)\s+https?://(.+):(.+)@([^/]+)}im', $output, $match) && !$this->io->hasAuthentication($match[3])) {
$this->io->setAuthentication($match[3], rawurldecode($match[1]), rawurldecode($match[2]));
}
}
<?php if (isset($proxy['user'])) {
$auth = rawurldecode($proxy['user']);
if (isset($proxy['pass'])) {
$auth .= ':' . rawurldecode($proxy['pass']);
<?php $auth = rawurldecode($proxy['user']);
if (isset($proxy['pass'])) {
$auth .= ':' . rawurldecode($proxy['pass']);
}
$auth = base64_encode($auth);
<?php if (Preg::isMatch('{^https?://([^:/]+):([^@/]+)@([^/]+)}i', $request['url'], $match)) {
$this->io->setAuthentication($job['origin'], rawurldecode($match[1]), rawurldecode($match[2]));
}
$rfs = $this->rfs;