HTTPS: headers not passed to CURL
here bugfix for snoopy 1.2.1:
--- Snoopy.class.php.old Tue Oct 25 02:50:12 2005
+++ Snoopy.class.php Tue Oct 25 02:51:10 2005
@@ -992,10 +992,11 @@
if(!empty($this->user) || !empty($this->pass))
$headers[] = "Authorization:
BASIC ".base64_encode($this->user.":".$this->pass);
- for($curr_header = 0; $curr_header < count
($headers); $curr_header++)
+ for($curr_header = 0; $curr_header < count
($headers); $curr_header++) {
$safer_header = strtr( $headers
[$curr_header], "\"", " " );
$cmdline_params .= " -H
\"".$safer_header."\"";
-
+ }
+
if(!empty($body))
$cmdline_params .= " -d \"$body\"";
Sy,
zaruba
Logged In: NO
Good eye. Thanks for catching that. I've added the curly
brace bugfix into CVS. I'll release a new version now.
Logged In: YES
user_id=547273
Good eye. Thanks for catching that. I've added the curly
brace bugfix into CVS. I'll release a new version now.