diff --git a/Submissions.php b/Submissions.php
index 0e1020a..2505d39 100644
--- a/Submissions.php
+++ b/Submissions.php
@@ -248,7 +248,9 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Marked' Order by lab
$submitted_by = "(GROUP) Group X ";
}
- $full_link = "$att1";
+ $base_att1 = basename($att1);
+
+ $full_link = "$base_att1"; // prevent students from directly accessing their classmates' submissions
if ($att2 != "") {
$full_link = $full_link . "| $att2";