webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Middleware
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
SubstituteBindings.php
1.164KB
edt
ren
ThrottleRequests.php
9.828KB
edt
ren
ThrottleRequestsWithRed
...
3.406KB
edt
ren
ValidateSignature.php
2.108KB
edt
ren
<?php namespace Illuminate\Routing\Middleware; use Closure; use Illuminate\Routing\Exceptions\InvalidSignatureException; use Illuminate\Support\Arr; class ValidateSignature { /** * The names of the parameters that should be ignored. * * @var array<int, string> */ protected $ignore = [ // ]; /** * Specify that the URL signature is for a relative URL. * * @param array|string $ignore * @return string */ public static function relative($ignore = []) { $ignore = Arr::wrap($ignore); return static::class.':'.implode(',', empty($ignore) ? ['relative'] : ['relative', ...$ignore]); } /** * Specify that the URL signature is for an absolute URL. * * @param array|string $ignore * @return class-string */ public static function absolute($ignore = []) { $ignore = Arr::wrap($ignore); return empty($ignore) ? static::class : static::class.':'.implode(',', $ignore); } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param array|null $args * @return \Illuminate\Http\Response * * @throws \Illuminate\Routing\Exceptions\InvalidSignatureException */ public function handle($request, Closure $next, ...$args) { [$relative, $ignore] = $this->parseArguments($args); if ($request->hasValidSignatureWhileIgnoring($ignore, ! $relative)) { return $next($request); } throw new InvalidSignatureException; } /** * Parse the additional arguments given to the middleware. * * @param array $args * @return array */ protected function parseArguments(array $args) { $relative = ! empty($args) && $args[0] === 'relative'; if ($relative) { array_shift($args); } $ignore = array_merge( property_exists($this, 'except') ? $this->except : $this->ignore, $args ); return [$relative, $ignore]; } }
<=Back
Liking