404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.190.176.94: ~ $
<?php

declare(strict_types=1);

namespace Kreait\Firebase\Value;

use Kreait\Firebase\Exception\InvalidArgumentException;
use Stringable;

/**
 * @internal
 */
final class Url
{
    /**
     * @var non-empty-string
     */
    public readonly string $value;

    /**
     * @param non-empty-string $value
     */
    private function __construct(string $value)
    {
        $startsWithHttp = str_starts_with($value, 'https://') || str_starts_with($value, 'http://');
        $parsedValue = parse_url($value);

        if (!$startsWithHttp || $parsedValue === false) {
            throw new InvalidArgumentException('The URL is invalid.');
        }

        $this->value = $value;
    }

    public static function fromString(Stringable|string $value): self
    {
        $value = (string) $value;

        if ($value === '') {
            throw new InvalidArgumentException('The URL cannot be empty.');
        }

        return new self($value);
    }
}

Filemanager

Name Type Size Permission Actions
ClearTextPassword.php File 677 B 0644
Email.php File 695 B 0644
Uid.php File 671 B 0644
Url.php File 958 B 0644