rfc1867_malicious_input.phpt 511 B

1234567891011121314151617181920212223
  1. --TEST--
  2. rfc1867 malicious input
  3. --INI--
  4. file_uploads=1
  5. upload_max_filesize=1024
  6. --POST_RAW--
  7. Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
  8. -----------------------------20896060251896012921717172737
  9. Content-Disposition: form-data; name="foo[]bar"; filename="file1.txt"
  10. Content-Type: text/plain-file1
  11. 1
  12. -----------------------------20896060251896012921717172737--
  13. --FILE--
  14. <?php
  15. var_dump($_FILES);
  16. var_dump($_POST);
  17. ?>
  18. --EXPECT--
  19. array(0) {
  20. }
  21. array(0) {
  22. }