FRED™
3.0
FRED™: Framework for Rapid and Easy Development
Path.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Rsi\Fred\Security\Check
;
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
}
Rsi\Fred\Security\Check
Definition:
Csrf.php:3
Rsi\Fred\Security\Check\Path\check
check($expected=false)
Definition:
Path.php:7
Rsi\Fred\Security\Check\Path
Definition:
Path.php:5
Rsi\Fred\Component\component
component($name)
Get a component (local or default).
Definition:
Component.php:80
src
Rsi
Fred
Security
Check
Path.php
Generated on Sun Aug 2 2020 19:43:57 for FRED™ by
1.8.13