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

@@ -14,6 +14,7 @@ Update from Maintenance > Update as usual. This release has four database change
- The warranty lookup button shows beside **Warranty expires** on the asset form straight after the update, as Lenovo needs no key and is switched on. It only asks Lenovo when someone clicks it. Switch Lenovo off in Admin > Warranty Lookup if you'd rather ITFlow didn't ask Lenovo's support site at all.
- Roles have a new **Vendors** permission, for your own vendors. The update gives each role what it had - **Read**, or its **Financial** level where that is higher - so nobody gains or loses anything until you change it in Admin > Roles.
- A `.md` file uploaded to a client's Files now becomes a document you can edit. To upload one as a file, as before, turn on **Keep them as files** in the Upload window. **Import Markdown Files** has gone from the Upload menu - Upload does it.
- If CrowdSec blocked new tickets and you switched its rule 932260 off for ITFlow, switch it back on once you've updated: the fields it took for a Linux command have new names. Bookmarks to the tickets list's **Scheduled** tab, and scripts that post ITFlow's forms with the old names, keep working.
### New Features & Updates
@@ -40,6 +41,7 @@ Update from Maintenance > Update as usual. This release has four database change
- Email and phone links work in Knowledge Base articles and documents - a `mailto:` or `tel:` link showed as plain text on the published article, in the client portal and on the document, while the editor still had it. Those in an article or document written in Markdown were taken out when it was saved; the database update puts them back in the ones already saved, so they don't need saving again. Email and phone links in ticket replies, such as those in an email signature, work too.
- Opening one of your own vendors from a client's license or service works - it said there was nothing to see.
- A ticket's other assets show on it when its main asset was taken off - they were still on the ticket but not listed.
- A ticket's page opened without a ticket - from a link cut short, say - says there's nothing to see, as for a ticket that isn't there, instead of an empty page.
- Behind CrowdSec's web application firewall, creating a ticket or a recurring ticket got you blocked, and soon banned, whatever you wrote in it. CrowdSec took the names of the fields that book the work - when, for how long, remote or onsite - for a Linux command, as they began with "sched", and so blocked the post. The same stopped the ticket's Schedule window, adding an agent to help at their own time, the **Scheduled** tab of the tickets list, sorting Maintenance > Cron by **Schedule** and saving a cron job. Those fields have new names, so nothing needs excluding in CrowdSec: any exclusion you added for this can come out. Stripe's return to ITFlow after a client saves a card or sets up autopay is renamed too, as the same firewall can take it for an attack when the browser doesn't say where it came from.
### Developer Updates

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']);

View File

@@ -5,4 +5,4 @@
* Update this file each time we merge develop into master. Format is YY.MM (add a .v if there is more than one release a month.
*/
DEFINE("APP_VERSION", "26.12.5");
DEFINE("APP_VERSION", "26.12.6");