FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Path.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Path extends \Rsi\Fred\Security\Check{
6 
7  public function check($expected = false){
8  return !preg_match('/(:\\/\\/|\\.\\.[\\\\\\/])/',$this->component('router')->pathInfo . ($_SERVER['QUERY_STRING'] ?? null));
9  }
10 
11 }
check($expected=false)
Definition: Path.php:7
component($name)
Get a component (local or default).
Definition: Component.php:80