Uname: Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software: Apache
PHP version: 8.3.32 [ PHP INFO ] PHP os: Linux
Server Ip: 163.227.92.254
Your Ip: 216.73.217.24
User: gutlooks (1003) | Group: gutlooks (1005)
Safe Mode: OFF
Disable Function:
exec,passthru,shell_exec,system

name : Utils.php
<?php
/**
 * This file is part of the firebase-php package.
 *
 * For the full copyright and license information, please read the LICENSE
 * file that was distributed with this source code.
 */

namespace Kreait\Firebase;

class Utils
{
    /**
     * Checks validity of a Firebase base URL
     *
     * @param  string            $url
     * @return string
     * @throws FirebaseException
     */
    public static function normalizeBaseUrl($url)
    {
        Restrictions::checkBaseUrl($url);

        return rtrim($url, '/');
    }

    /**
     * Returns a normalized location.
     *
     * @param string $location
     *
     * @throws FirebaseException If the location violates restrictions imposed by Firebase.
     *
     * @return string The normalized location.
     */
    public static function normalizeLocation($location)
    {
        $location = trim((string) $location, '/');
        Restrictions::checkLocation($location);

        return implode('/', explode('/', $location));
    }

    public static function prepareLocationForRequest($location)
    {
        $location = self::normalizeLocation($location);

        $parts = explode('/', $location);

        foreach ($parts as &$part) {
            $part = rawurlencode($part);
        }

        return implode('/', $parts);
    }
}
© 2026 GrazzMean