Skip to content

Commit

Permalink
Added DocBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Feb 15, 2015
1 parent 5fd7396 commit 960ddd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,12 @@ public function testFileWithPathTraversal() {
$response->file('my/../cat.gif');
}

/**
* Although unlikely, file's may contain dots in their filenames.
* This should be allowed, as long as the dots doesn't specify a path (../ or ..\)
*
* @return void
*/
public function testFileWithDotsInFilename() {
$ok = false;
$file = 'my/Some..cat.gif';
Expand Down

0 comments on commit 960ddd0

Please sign in to comment.