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

Commit

Permalink
Merge pull request minkphp#86 from molchanoviv/master
Browse files Browse the repository at this point in the history
Add filename check
  • Loading branch information
Alexander Obuhovich committed Sep 18, 2014
2 parents 357a67a + 31d93a7 commit 8e9415e
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 8e9415e

Please sign in to comment.