Skip to content

Commit

Permalink
Added index column to Admin/ModuleManage/GetProgress table per OWASP#671
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarquez90 authored and ismisepaul committed Jul 30, 2022
1 parent c967120 commit d964797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/dbProcs/Getter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,9 @@ public static String getProgress(String applicationRoot, String classId) {
if (resultSet.getString(1) != null) {
result +=
"<tr><td>"
+ resultAmount
+ // Output the user
"</td><td>"
+ Encode.forHtml(resultSet.getString(1))
+ // Output their progress
"</td><td><div style='background-color: #A878EF; heigth: 25px; width: "
Expand All @@ -1946,7 +1949,7 @@ public static String getProgress(String applicationRoot, String classId) {
}
}
if (resultAmount > 0) {
result = "<table><tr><th>Player</th><th>Progress</th></tr>" + result + "</table>";
result = "<table><tr><th>#</th><th>Player</th><th>Progress</th></tr>" + result + "</table>";
} else {
result = new String();
}
Expand Down

0 comments on commit d964797

Please sign in to comment.