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 /** * OAuth 2.0 Redirect Response. * * @author Alex Bilbie <hello@alexbilbi..
Decoded Output download
<?php
/**
* OAuth 2.0 Redirect Response.
*
* @author Alex Bilbie <[email protected]>
* @copyright Copyright (c) Alex Bilbie
* @license http://mit-license.org/
*
* @link https://github.com/thephpleague/oauth2-server
*/
declare(strict_types=1);
namespace League\OAuth2\Server\ResponseTypes;
use Psr\Http\Message\ResponseInterface;
class RedirectResponse extends AbstractResponseType
{
private string $redirectUri;
public function setRedirectUri(string $redirectUri): void
{
$this->redirectUri = $redirectUri;
}
public function generateHttpResponse(ResponseInterface $response): ResponseInterface
{
return $response->withStatus(302)->withHeader('Location', $this->redirectUri);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* OAuth 2.0 Redirect Response.
*
* @author Alex Bilbie <[email protected]>
* @copyright Copyright (c) Alex Bilbie
* @license http://mit-license.org/
*
* @link https://github.com/thephpleague/oauth2-server
*/
declare(strict_types=1);
namespace League\OAuth2\Server\ResponseTypes;
use Psr\Http\Message\ResponseInterface;
class RedirectResponse extends AbstractResponseType
{
private string $redirectUri;
public function setRedirectUri(string $redirectUri): void
{
$this->redirectUri = $redirectUri;
}
public function generateHttpResponse(ResponseInterface $response): ResponseInterface
{
return $response->withStatus(302)->withHeader('Location', $this->redirectUri);
}
}
Function Calls
None |
Stats
MD5 | f17c250f622b75a9f7434ecf66fee92f |
Eval Count | 0 |
Decode Time | 97 ms |