You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php_error_docref(NULLTSRMLS_CC, E_WARNING, "You must pass either an object or an array with the CURLOPT_HTTPHEADER, CURLOPT_QUOTE and CURLOPT_POSTQUOTE arguments");
1005
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "You must pass either an object or an array with the CURLOPT_HTTPHEADER, CURLOPT_QUOTE, CURLOPT_HTTP200ALIASES and CURLOPT_POSTQUOTE arguments");
980
1006
RETURN_FALSE;
981
1007
}
982
1008
@@ -1002,6 +1028,28 @@ PHP_FUNCTION(curl_setopt)
1002
1028
1003
1029
error=curl_easy_setopt(ch->cp, option, slist);
1004
1030
1031
+
break;
1032
+
}
1033
+
/* the following options deal with files, therefor safe_mode & open_basedir checks
1034
+
* are required.
1035
+
*/
1036
+
caseCURLOPT_COOKIEJAR:
1037
+
caseCURLOPT_SSLCERT:
1038
+
caseCURLOPT_RANDOM_FILE:
1039
+
caseCURLOPT_COOKIEFILE: {
1040
+
char*copystr=NULL;
1041
+
1042
+
convert_to_string_ex(zvalue);
1043
+
1044
+
if (php_check_open_basedir(Z_STRVAL_PP(zvalue) TSRMLS_CC) || (PG(safe_mode) && !php_checkuid(Z_STRVAL_PP(zvalue), "rb+", CHECKUID_CHECK_MODE_PARAM))) {
0 commit comments