Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/framework/Session/Config/Validator/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/Session/Config/Validator/CookiePathValidator.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Framework\Session\Config\Validator;

class CookiePathValidator extends \Magento\Framework\Validator\AbstractValidator
{
    /**
     * {@inheritdoc}
     */
    public function isValid($value)
    {
        $this->_clearMessages();
        $test = parse_url($value, PHP_URL_PATH);
        if ($test != $value || '/' != $test[0]) {
            return false;
        }
        return true;
    }
}