summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--non-mandatory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/non-mandatory.php b/non-mandatory.php
index 29034c6..6a42a8a 100644
--- a/non-mandatory.php
+++ b/non-mandatory.php
@@ -79,7 +79,8 @@ echo "<table>\n";
$link = str_replace($upload_dir, '/uploads', $botcmd_files[0]);
echo '<td><a rel="nofollow" href="' . $link . '">' . $status_line . '</a></td>';
} else {
- $link = '/uploads/failure/' . $p['path'] . '/log/' . $p['package'];
+ $dirs = glob($upload_dir . '/failure/' . $p['path'] . '/log/*/');
+ $link = str_replace($upload_dir, '/uploads', $dirs[0]);
echo '<td><a rel="nofollow" href="' . $link . '">' . $status_line . '</a></td>';
}
echo "</tr>\n";