mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
43f16f38f0
commit
cad57dcc28
1 changed files with 1 additions and 1 deletions
|
@ -1336,7 +1336,7 @@ class CakeResponse {
|
||||||
'download' => null
|
'download' => null
|
||||||
);
|
);
|
||||||
|
|
||||||
if (strpos($path, '../') !== false || strpos($path, '..\\') !== false) {
|
if (strpos($path, '..' . DS) !== false) {
|
||||||
throw new NotFoundException(__d(
|
throw new NotFoundException(__d(
|
||||||
'cake_dev',
|
'cake_dev',
|
||||||
'The requested file contains `..` and will not be read.'
|
'The requested file contains `..` and will not be read.'
|
||||||
|
|
Loading…
Reference in a new issue