Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace TestApp\Routing\Route; use Cake\Http\Exception\..

Decoded Output download

<?php
declare(strict_types=1);

namespace TestApp\Routing\Route;

use Cake\Http\Exception\RedirectException;
use Cake\Routing\Route\Route as Route;

class HeaderRedirectRoute extends Route
{
    public function parse(string $url, string $method = ''): ?array
    {
        $params = parent::parse($url, $method);
        if (!$params) {
            return null;
        }
        throw new RedirectException('http://localhost/pages', 301, ['Redirect-Exception' => 'yes']);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);

namespace TestApp\Routing\Route;

use Cake\Http\Exception\RedirectException;
use Cake\Routing\Route\Route as Route;

class HeaderRedirectRoute extends Route
{
    public function parse(string $url, string $method = ''): ?array
    {
        $params = parent::parse($url, $method);
        if (!$params) {
            return null;
        }
        throw new RedirectException('http://localhost/pages', 301, ['Redirect-Exception' => 'yes']);
    }
}

Function Calls

None

Variables

None

Stats

MD5 17ffe9f468951bf2d23bf95b7106931f
Eval Count 0
Decode Time 93 ms