Skip to content
Permalink
Browse files

Add translation to publically visible error message.

  • Loading branch information...
markstory committed Dec 11, 2016
1 parent 3d63012 commit 3364aefb89875febf40eb1a2c0ff79057b6ff0d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Network/Response.php
@@ -2227,7 +2227,7 @@ public function withFile($path, array $options = [])
protected function validateFile($path)
{
if (strpos($path, '../') !== false || strpos($path, '..\\') !== false) {
throw new NotFoundException('The requested file contains `..` and will not be read.');
throw new NotFoundException(__d('cake', 'The requested file contains `..` and will not be read.'));
}
if (!is_file($path)) {
$path = APP . $path;

0 comments on commit 3364aef

Please sign in to comment.
You can’t perform that action at this time.