I solved some issues with Directory traversal
This commit is contained in:
@@ -54,6 +54,9 @@ exit;
|
||||
|
||||
function rangeDownload($location,$mimeType)
|
||||
{
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$location = $filter->xssFilterHard($location, "path");
|
||||
if (!file_exists($location))
|
||||
{
|
||||
header ("HTTP/1.0 404 Not Found");
|
||||
|
||||
Reference in New Issue
Block a user