CoreFiles by mySites.guru
OutgoingRequest.php30 lines, 783 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
e88f883eed1b8a99cdaab28f01a8eb02
sha1
2391db2247928c8a1cfade00ad4f4aaa59c64619
sha256
3d909206fcd19fd89f80062fbe55c8b996acbc1487026392792ac208455b8b0c
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpClient\Internal;

use Symfony\Component\HttpFoundation\Request;

/**
 * A request that describes a URL the application asked the client to fetch.
 *
 * The list of trusted hosts protects against host injection by remote clients.
 * It does not apply here: the host comes from the application itself.
 *
 * @internal
 */
final class OutgoingRequest extends Request
{
    public function getHost(): string
    {
        return strtolower(preg_replace('/:\d+$/', '', trim($this->headers->get('HOST', ''))));
    }
}

The same content is in 4 releases, Joomla 5.4.11 to 6.3.0-alpha1. See them all, or every version of this file.