Skip to content

Commit

Permalink
Latest Ultimate Web Scraper Toolkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubiclesoft committed Apr 25, 2018
1 parent 116ac18 commit 26aecc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions support/web_server.php
Expand Up @@ -329,10 +329,10 @@ public function ProcessClientRequestBody($request, $body, $id)
{
if ($client->currfile !== false) $client->files[$client->currfile]->Close();

$filename = $this->cachedir . $id . "_" . count($client->files) . ".dat";
$filename = $this->cachedir . $id . "_" . $client->requests . "_" . count($client->files) . ".dat";
$client->currfile = $filename;

@unlink($filename);
if (file_exists($filename)) @unlink($filename);
$tempfile = new WebServer_TempFile();
$tempfile->filename = $filename;
if ($tempfile->Open() === false) return false;
Expand Down Expand Up @@ -400,10 +400,10 @@ public function ProcessClientRequestBody($request, $body, $id)
{
$client->contenthandled = false;

$filename = $this->cachedir . $id . ".dat";
$filename = $this->cachedir . $id . "_" . $client->requests . ".dat";
$client->currfile = $filename;

@unlink($filename);
if (file_exists($filename)) @unlink($filename);
$tempfile = new WebServer_TempFile();
$tempfile->filename = $filename;
if ($tempfile->Open() === false) return false;
Expand Down

0 comments on commit 26aecc4

Please sign in to comment.