Prevent Path Traversal
This commit is contained in:
parent
fb9ef8ecd3
commit
d8cbfea8f4
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ if (isset($_SESSION['files'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($r_imagedir === false || strpos($r_imagedir, $r_basedir . DIRECTORY_SEPARATOR) !== 0) {
|
if ($r_imagedir === false || strpos(Helpers::end_dir($r_imagedir), $r_basedir.DIRECTORY_SEPARATOR) !== 0) {
|
||||||
print_r($r_basedir);
|
print_r($r_basedir);
|
||||||
|
|
||||||
print_r($r_imagedir);
|
print_r($r_imagedir);
|
||||||
|
|
Loading…
Reference in a new issue