404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.116.118.54: ~ $
<?php

namespace Egulias\EmailValidator\Parser;

use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExpectingATEXT;

class IDRightPart extends DomainPart
{
    protected function validateTokens(bool $hasComments): Result
    {
        $invalidDomainTokens = [
            EmailLexer::S_DQUOTE => true,
            EmailLexer::S_SQUOTE => true,
            EmailLexer::S_BACKTICK => true,
            EmailLexer::S_SEMICOLON => true,
            EmailLexer::S_GREATERTHAN => true,
            EmailLexer::S_LOWERTHAN => true,
        ];

        if (isset($invalidDomainTokens[$this->lexer->current->type])) {
            return new InvalidEmail(new ExpectingATEXT('Invalid token in domain: ' . $this->lexer->current->value), $this->lexer->current->value);
        }
        return new ValidEmail();
    }
}

Filemanager

Name Type Size Permission Actions
CommentStrategy Folder 0755
Comment.php File 3.12 KB 0644
DomainLiteral.php File 7.02 KB 0644
DomainPart.php File 10.48 KB 0644
DoubleQuote.php File 3.07 KB 0644
FoldingWhiteSpace.php File 2.73 KB 0644
IDLeftPart.php File 386 B 0644
IDRightPart.php File 972 B 0644
LocalPart.php File 5.52 KB 0644
PartParser.php File 1.51 KB 0644