mirror of
https://github.com/itflow-org/itflow
synced 2026-12-05 18:49:01 +00:00
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:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user