Skip to content

Commit

Permalink
Merge pull request #1532 from yild/patch-1
Browse files Browse the repository at this point in the history
CVE Inventory page - remove unnsecesary dir part from URL
  • Loading branch information
Lea9250 authored Sep 4, 2023
2 parents f8e56ae + 9ce9f56 commit 56dde77
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
echo "<div class='row margin-top30'>
<div class='col-sm-10'>";

echo "<a href='".$url."/ocsreports/files/cve/cve_matching_mostknown.csv' download>".$l->g(1480)."</a>";
$dir = dirname($_SERVER['REQUEST_URI']);
$url = $url.$dir;
echo "<a href='".$url."/files/cve/cve_matching_mostknown.csv' download>".$l->g(1480)."</a>";
echo "<br><br>";
formGroup('file', 'csv_file', $l->g(1478).' :', '', '', $protectedPost['csv_file'] ?? '', '', '', '', "accept='.csv'");
echo "<input type='submit' name='valid_csv' id='valid_csv' class='btn btn-success' value='".$l->g(1479)."'>";
Expand Down Expand Up @@ -137,4 +139,4 @@
if (AJAX) {
ob_end_clean();
tab_req($list_fields, $default_fields, $list_col_cant_del, $sql['SQL'], $tab_options);
}
}

0 comments on commit 56dde77

Please sign in to comment.