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\Path\check
check($expected=false)
Perform the check.
Definition:
Path.php:7
Rsi\Fred\Security\Check
Definition:
Csrf.php:3
Rsi\Fred\Component\component
component($name)
Get a component (local or default).
Definition:
Component.php:81
Rsi\Fred\Security\Check\Path
Definition:
Path.php:5
src
Rsi
Fred
Security
Check
Path.php
Generated on Sat Jun 27 2026 16:33:38 for FRED™ by
1.8.17