Merge pull request 'Bug203-Hui' (#24) from Bug203-Hui into master

Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/24
bug312-Golden
mrlan 2021-11-09 11:38:59 +08:00
commit 7b1b36253c
1 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,9 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Marked' Order by lab
$submitted_by = "<i>(GROUP)</i> Group X "; $submitted_by = "<i>(GROUP)</i> Group X ";
} }
$full_link = "<a href='~\..\Lab_Report_Submisions\\$att1'>$att1</a>"; $base_att1 = basename($att1);
$full_link = "<a href='~\..\Download.php?file=$att1&attachment=1'>$base_att1</a>"; // prevent students from directly accessing their classmates' submissions
if ($att2 != "") { if ($att2 != "") {
$full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att2'>$att2</a>"; $full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att2'>$att2</a>";