Skip to content

Commit 217f631

Browse files
committed
a sensible precaution
1 parent 5e23793 commit 217f631

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ static function LoadDownloader()
8787
$joblist=json_decode(stripslashes($_COOKIE['jobs']),true);
8888
foreach($joblist as $job)
8989
{
90-
if(file_exists(self::$jobpath."/".$job.".job"))
90+
if(file_exists(self::$jobpath."/".basename($job).".job"))
9191
{
92-
self::$DOWNLOADER[]=json_decode(file_get_contents(self::$jobpath."/".$job.".job"),true);
92+
self::$DOWNLOADER[]=json_decode(file_get_contents(self::$jobpath."/".basename($job).".job"),true);
9393
}
9494
}
9595
}

0 commit comments

Comments
 (0)