Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#63 $cmdline_params not defined before read

open
nobody
None
3
2007-07-17
2007-07-17
Nikita Zhuk
No

Version: Snoopy 1.2.3
Function: _httpsrequest(...)

In the following loop the $cmdline_params variable is read before it's defined:

for($curr_header = 0; $curr_header < count($headers); $curr_header++) {
$safer_header = strtr( $headers[$curr_header], "\"", " " );
$cmdline_params .= " -H \"".$safer_header."\"";
}

Simple $cmdline_params = ""; before this loop will fix this.

Discussion

  • Nikita Zhuk
    Nikita Zhuk
    2007-07-17

    • priority: 5 --> 3