Submissions.php: fix Bug 203 Unable to download an attachment from a student's submission (http://118.25.96.118/bugzilla/show_bug.cgi?id=203)
parent
c48624dd6a
commit
7a5084ca4e
|
@ -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 ";
|
||||
}
|
||||
|
||||
$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 != "") {
|
||||
$full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att2'>$att2</a>";
|
||||
|
|
Loading…
Reference in New Issue