Release 26.12.6: set the app version to 26.12.6, a ticket page opened without a ticket says there is nothing to see instead of an empty page with broken scripts, and the 26.12.6 changelog gets the CrowdSec rule 932260 upgrade note and this fix

This commit is contained in:
johnnyq
2026-12-05 12:10:47 -05:00
parent f99768bcb6
commit 2bda25dd0e
3 changed files with 10 additions and 1 deletions

View File

@@ -26,6 +26,13 @@ $purifier_config->set('URI.AllowedSchemes', purifierUriSchemes());
$purifier_config->set('Attr.ForbiddenClasses', ['ajax-modal']);
$purifier = new HTMLPurifier($purifier_config);
// No ticket asked for: as for one that isn't there - the page's scripts below need a ticket
if (!isset($_GET['ticket_id'])) {
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='tickets.php'><i class='fas fa-fw fa-arrow-left'></i> Go Back</a></center>";
require_once "../includes/footer.php";
exit;
}
if (isset($_GET['ticket_id'])) {
$ticket_id = intval($_GET['ticket_id']);