Menu

#52 HTTPS/CURL bug

closed-fixed
None
5
2005-10-30
2005-10-25
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    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.

     
  • Gene Wood

    Gene Wood - 2005-10-30
    • assigned_to: nobody --> gene_wood
    • status: open --> closed-fixed
     
  • Gene Wood

    Gene Wood - 2005-10-30

    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.

     

Log in to post a comment.