From f3a1cc184e05396166aacd8e99d77a0988980c79 Mon Sep 17 00:00:00 2001 From: Git Date: Wed, 20 Jun 2012 08:00:14 +0000 Subject: [PATCH] Empty commit --- sections/torrents/download.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sections/torrents/download.php b/sections/torrents/download.php index 5e277f91..e2bfb80d 100644 --- a/sections/torrents/download.php +++ b/sections/torrents/download.php @@ -4,6 +4,7 @@ $TorrentPass = $LoggedUser['torrent_pass']; $DownloadAlt = $LoggedUser['DownloadAlt']; $UserID = $LoggedUser['ID']; + $AuthKey = $LoggedUser['AuthKey']; } else { $UserInfo = $Cache->get_value('user_'.$_REQUEST['torrent_pass']); if(!is_array($UserInfo)) { @@ -21,13 +22,14 @@ list($UserID,$DownloadAlt)=array_shift($UserInfo); if(!$UserID) { error(403); } $TorrentPass = $_REQUEST['torrent_pass']; + $AuthKey = $_REQUEST['authkey']; } require(SERVER_ROOT.'/classes/class_torrent.php'); $TorrentID = $_REQUEST['id']; $uih = user_heavy_info($UserID); -if ($_REQUEST['authkey'] != $uih['AuthKey']) { +if ($AuthKey != $uih['AuthKey']) { error(403); die;