Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.227.140.134
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
symfony /
http-kernel /
Tests /
Delete
Unzip
Name
Size
Permission
Date
Action
Bundle
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
CacheClearer
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
CacheWarmer
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Config
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Controller
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
ControllerMetadata
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
DataCollector
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Debug
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
DependencyInjection
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Event
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
EventListener
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Exception
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Fixtures
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Fragment
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
HttpCache
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Log
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
Profiler
[ DIR ]
drwxr-xr-x
2018-11-30 09:00
ClientTest.php
7.06
KB
-rw-r--r--
2018-11-30 09:00
HttpKernelTest.php
14.29
KB
-rw-r--r--
2018-11-30 09:00
KernelTest.php
22.63
KB
-rw-r--r--
2018-11-30 09:00
Logger.php
2.01
KB
-rw-r--r--
2018-11-30 09:00
TestHttpKernel.php
1.18
KB
-rw-r--r--
2018-11-30 09:00
UriSignerTest.php
2.31
KB
-rw-r--r--
2018-11-30 09:00
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\UriSigner; class UriSignerTest extends TestCase { public function testSign() { $signer = new UriSigner('foobar'); $this->assertContains('?_hash=', $signer->sign('http://example.com/foo')); $this->assertContains('&_hash=', $signer->sign('http://example.com/foo?foo=bar')); } public function testCheck() { $signer = new UriSigner('foobar'); $this->assertFalse($signer->check('http://example.com/foo?_hash=foo')); $this->assertFalse($signer->check('http://example.com/foo?foo=bar&_hash=foo')); $this->assertFalse($signer->check('http://example.com/foo?foo=bar&_hash=foo&bar=foo')); $this->assertTrue($signer->check($signer->sign('http://example.com/foo'))); $this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar'))); $this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar&0=integer'))); $this->assertSame($signer->sign('http://example.com/foo?foo=bar&bar=foo'), $signer->sign('http://example.com/foo?bar=foo&foo=bar')); } public function testCheckWithDifferentArgSeparator() { $this->iniSet('arg_separator.output', '&'); $signer = new UriSigner('foobar'); $this->assertSame( 'http://example.com/foo?baz=bay&foo=bar&_hash=rIOcC%2FF3DoEGo%2FvnESjSp7uU9zA9S%2F%2BOLhxgMexoPUM%3D', $signer->sign('http://example.com/foo?foo=bar&baz=bay') ); $this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar&baz=bay'))); } public function testCheckWithDifferentParameter() { $signer = new UriSigner('foobar', 'qux'); $this->assertSame( 'http://example.com/foo?baz=bay&foo=bar&qux=rIOcC%2FF3DoEGo%2FvnESjSp7uU9zA9S%2F%2BOLhxgMexoPUM%3D', $signer->sign('http://example.com/foo?foo=bar&baz=bay') ); $this->assertTrue($signer->check($signer->sign('http://example.com/foo?foo=bar&baz=bay'))); } }