Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add filename check
Browse files Browse the repository at this point in the history
  • Loading branch information
molchanoviv committed Sep 18, 2014
1 parent 357a67a commit 31d93a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/web-fixtures/advanced_form_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
ksort($POST);
echo str_replace('>', '', var_export($POST, true)) . "\n";
if (isset($FILES['about']) && file_exists($FILES['about']->getPathname())) {
echo $FILES['about']->getClientOriginalName() . "\n";
echo file_get_contents($FILES['about']->getPathname());
} else {
echo "no file";
Expand Down

0 comments on commit 31d93a7

Please sign in to comment.