From 8ba95510332f77dcbf6cd01a836db042244cde57 Mon Sep 17 00:00:00 2001 From: Andrea Faulds Date: Sat, 31 May 2014 14:06:49 +0000 Subject: [PATCH] Noted CURLOPT_SAFE_UPLOAD in curl_setopt, which was introduced in PHP 5.5 (Finally) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333635 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/curl/functions/curl-setopt.xml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index ed68d727f5..44e94c4424 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -366,6 +366,20 @@ + + CURLOPT_SAFE_UPLOAD + + &true; to disable support for the @ prefix for + uploading files in CURLOPT_POSTFIELDS, which + means that values starting with @ can be safely + passed as fields. CURLFile may be used for + uploads instead. + + + &false; by default at present, but this is likely to be changed in a + future version of PHP. + + CURLOPT_SSL_VERIFYPEER @@ -999,7 +1013,10 @@ As of PHP 5.5.0, the @ prefix is deprecated and - files can be sent using CURLFile. + files can be sent using CURLFile. The + @ prefix can be disabled for safe passing of + values beginning with @ by setting the + CURLOPT_SAFE_UPLOAD option to &true;.