Permalink
Browse files

bug #86 Fix wrong multipart data for file_get_contents (fabpot)

This PR was merged into the 4.0-dev branch.

Discussion
----------

Fix wrong multipart data for file_get_contents

Commits
-------

10070a7 fixed wrong multipart data for file_get_contents
2 parents 9e69edd + 10070a7 commit 6a3b0c3b42e41c777b1ad75032d8177863fdc5e1 @fabpot fabpot committed Jul 24, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 SensioLabs/Security/Crawler/FileGetContentsCrawler.php
@@ -30,7 +30,7 @@ protected function doCheck($lock, $certFile)
'http' => array(
'method' => 'POST',
'header' => "Content-Type: multipart/form-data; boundary=$boundary\r\nAccept: application/json",
- 'content' => "--$boundary\r\nContent-Disposition: form-data; name=\"lock\"; filename=\"$lock\"\r\nContent-Type: application/octet-stream\r\n\r\n".file_get_contents($lock)."\r\n--$boundary\r\n--\r\n",
+ 'content' => "--$boundary\r\nContent-Disposition: form-data; name=\"lock\"; filename=\"$lock\"\r\nContent-Type: application/octet-stream\r\n\r\n".file_get_contents($lock)."\r\n--$boundary--\r\n",
'ignore_errors' => true,
'follow_location' => true,
'max_redirects' => 3,

0 comments on commit 6a3b0c3

Please sign in to comment.