Skip to content

Commit

Permalink
Use DS instead of checking both slash styles.
Browse files Browse the repository at this point in the history
Refs #5905
  • Loading branch information
markstory committed Mar 10, 2015
1 parent 43f16f3 commit cad57dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ public function file($path, $options = array()) {
'download' => null
);

if (strpos($path, '../') !== false || strpos($path, '..\\') !== false) {
if (strpos($path, '..' . DS) !== false) {
throw new NotFoundException(__d(
'cake_dev',
'The requested file contains `..` and will not be read.'
Expand Down

0 comments on commit cad57dc

Please sign in to comment.