Commit Graph

4 Commits

Author SHA1 Message Date
johnnyq
ab3a8ad683 Web application firewalls: what is written in an editor goes as a file beside the form, so CrowdSec with the OWASP Core Rule Set, ModSecurity and Cloudflare no longer block and ban agents and clients for a picture, coloured text or a reply's draft - ticket replies and drafts, new tickets, editing a reply, documents in rich text and Markdown, Knowledge Base articles, canned responses, AI Reword and Draft, and the client portal's tickets and replies - restored into the post by functions/request_fields.php before anything reads it, with posts too large for PHP's upload limits sent as before; 26.12.3 changelog 2026-12-01 17:03:33 -05:00
johnnyq
8479010c18 Write portal documents in Markdown too: New Document in the client portal gets the Rich text and Markdown switch with the Markdown toolbar, Preview and help, converting either way as it is written and remembering the way used last, and its rich text editor shows the document as it will read with headings, quotes, code, tables and lines on its toolbar; both editors and the switch are now one shared include for agents and the portal, the portal converts Markdown at its own post.php for contacts who can write documents, Markdown documents from the portal open in Markdown for agents, and an empty document is refused in either mode; 26.12.3 changelog entries 2026-11-29 22:55:08 -05:00
johnnyq
feb068f16c Keep a picture that was copied by itself as a copy when it is pasted into an editor, not as a link to where it came from: Copy image in a browser puts both the picture and an img tag pointing at the other site on the clipboard, and TinyMCE takes the HTML whenever there is any, so the reply or document saved the link and the picture showed only for the person who pasted it; js/tinymce_defaults.js now puts a paste handler on every editor, ahead of TinyMCE own, that hands the paste back with only the picture on it when the clipboard holds one image file and its HTML is a single img with no text or other content, so it is stored like a pasted screenshot in every editor in ITFlow and the client portal; HTML with text in it is left to TinyMCE as before and nothing is fetched; add the changelog entries. Reported by jcobu on the forum 2026-11-11 12:41:31 -05:00
johnnyq
6ecc27e7ca Version ITFlow's scripts and stylesheets so browsers fetch the new copies after an update instead of needing a cache clear: add staticFileUrl() in functions/app.php, which adds ?v= and the file's modification time to the address, and send every script and stylesheet tag through it, libs included, with page-relative addresses changed to start from the site root; add js/tinymce_defaults.js to set TinyMCE's cache_suffix so the plugins, theme and skins it loads itself are versioned too; load ticket collision detection only when a ticket is shown, so a ticket that isn't found no longer throws a script error; add changelog entries and a CONTRIBUTING rule that new tags must use staticFileUrl() 2026-11-09 01:22:35 -05:00