Skip to content

Commit

Permalink
Addressed stored XSS vulnerability in week.php by escaping cell title.
Browse files Browse the repository at this point in the history
  • Loading branch information
anuko committed May 5, 2023
1 parent ec4d03d commit 093cfe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initialize.php
Expand Up @@ -21,7 +21,7 @@
die("mysqli_report function is not available."); // No point to continue as mysqli will not work.
}

define("APP_VERSION", "1.22.11.5782");
define("APP_VERSION", "1.22.12.5783");
define("APP_DIR", dirname(__FILE__));
define("LIBRARY_DIR", APP_DIR."/WEB-INF/lib");
define("TEMPLATE_DIR", APP_DIR."/WEB-INF/templates");
Expand Down
2 changes: 1 addition & 1 deletion week.php
Expand Up @@ -242,7 +242,7 @@ function render(&$table, $value, $row, $column, $selected = false) {
$field->setValue($table->getValueAt($row,$column)['duration']); // Duration for even rows.
} else {
$field->setValue($table->getValueAt($row,$column)['note']); // Comment for odd rows.
$field->setTitle($table->getValueAt($row,$column)['note']); // Tooltip to help view the entire comment.
$field->setTitle(htmlspecialchars($table->getValueAt($row,$column)['note'])); // Tooltip to help view the entire comment.
}
} else {
$field->setValue($table->getValueAt($row,$column)['duration']);
Expand Down

0 comments on commit 093cfe1

Please sign in to comment.