From 14749649eb3b44b34ed79800ae0d9ec4a5a46b08 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 12 Apr 2016 12:12:24 +0200 Subject: [PATCH] Minor - Fix comment --- main/inc/lib/sessionmanager.lib.php | 4 +--- main/webservices/lp.php | 2 +- main/work/downloadfolder.inc.php | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main/inc/lib/sessionmanager.lib.php b/main/inc/lib/sessionmanager.lib.php index e61b57ecc7..5e1ebc8430 100755 --- a/main/inc/lib/sessionmanager.lib.php +++ b/main/inc/lib/sessionmanager.lib.php @@ -1255,9 +1255,7 @@ class SessionManager $result = Database::query($sql); $session = Database::fetch_assoc($result); - //We are not using this becaouse the range its to small and no other date match the condition of this function - //$clicks = Tracking::get_total_clicks($info['user_id'], $courseId, $sessionId, $info['login_course_date'], $info['logout_course_date']); - #building array to display + // building array to display $return[] = array( 'user_id' => $info['user_id'], 'logindate' => $info['login_course_date'], diff --git a/main/webservices/lp.php b/main/webservices/lp.php index 4240355c78..51f26e314d 100644 --- a/main/webservices/lp.php +++ b/main/webservices/lp.php @@ -45,7 +45,7 @@ function WSHelperVerifyKey($params) // if we are behind a reverse proxy, assume it will send the // HTTP_X_FORWARDED_FOR header and use this IP instead if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { - list($ip1, $ip2) = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); + list($ip1) = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $ip = trim($ip1); } if ($debug) diff --git a/main/work/downloadfolder.inc.php b/main/work/downloadfolder.inc.php index fbb75d1263..f22096e9cc 100755 --- a/main/work/downloadfolder.inc.php +++ b/main/work/downloadfolder.inc.php @@ -182,6 +182,7 @@ if (!empty($files)) { //start download of created file $name = $fileName .'.zip'; + if (Security::check_abs_path($temp_zip_file, api_get_path(SYS_ARCHIVE_PATH))) { DocumentManager::file_send_for_download($temp_zip_file, true, $name); @unlink($temp_zip_file);