#62 Header file is not created in the specified tmp directory

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

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

There's a line:

$headerfile = tempnam($temp_dir, "sno");

However, the $temp_dir is an instance variable which can be specified by the user so it should be accessed instead, i.e.:

$headerfile = tempnam($this->temp_dir, "sno");

Discussion

  • Nikita Zhuk

    Nikita Zhuk - 2007-07-17
    • status: open --> open-duplicate
     
  • Nikita Zhuk

    Nikita Zhuk - 2007-07-17
    • priority: 5 --> 3
     
  • Nikita Zhuk

    Nikita Zhuk - 2007-07-17

    Logged In: YES
    user_id=1846759
    Originator: YES

    This is a duplicate of bug 1715080.

     
  • Ruben Barkow

    Ruben Barkow - 2012-07-20

    but it is solved here!

    i suggest to use sys_get_temp_dir() instead:

    #$temp_dir=$this->temp_dir
    $temp_dir=sys_get_temp_dir();
    if(!is_writable($temp_dir)) echo "<br>please chmod +w '$temp_dir' for www-data<br><br>";
    $headerfile = tempnam($temp_dir, "sno");

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks