Skip to content

3.6.6

Choose a tag to compare

@joeworkman joeworkman released this 03 Nov 19:39
· 113 commits to master since this release
3.6.6
50aa106

Security

  • A critical security issue is fixed. Update as soon as you can
  • A number of smaller security fixes. The behavior changes they bring are listed below
  • Uploaded HTML and SVG files open in a sandbox. They still display, but scripts in them don't run. Behavior change: an uploaded HTML page that relies on scripts or forms no longer works when opened from its file URL. Images on the ImageWorks upload route are unaffected; other kinds of files there now get a 404, so use their download link
  • Protected files ask for their protection at every link. A file with access groups or a download password now asks for them however it is linked. Behavior change: if a page links to such a file directly, visitors who aren't signed in to the right group, or don't have the password, no longer get the file
  • Logout only redirects back to your site. A redirect to another site goes to / instead
  • Twig map, filter, sort, reduce and find take arrow functions only. Behavior change: passing a PHP function name, such as |map('strtoupper'), is now an error; write |map(v => v|upper) instead
  • diagnose.php is switched on by a file. To use it, create an empty file named .tcms-support next to it; the report is then available for 72 hours. Behavior change: the old token link no longer works

Added

  • Unsubscribe links for Bulk Send. Give the recipient collection's schema a toggle named unsubscribed (or the name in mailer.unsubscribeProperty). Every bulk email to it then carries one-click List-Unsubscribe headers (RFC 8058), which Gmail and Yahoo require from bulk senders, and templates get an {{ unsubscribeUrl }} variable for a link in the body. The link opens a confirm page, so mail scanners that open links change nothing. Unsubscribed objects are left out when a send is queued, and skipped if they unsubscribe after it. Test sends to an override address carry no headers, and their link changes nothing. Collections without the property send as before. See Mailer
  • Cancel a bulk send. A batch in Send History that is scheduled or still sending has a Cancel button. It removes the emails not sent yet from the queue; emails already sent stay sent, and the batch shows as Cancelled
  • Bulk sends from an extension. BulkMailerService::queueRenderedSend() sends an extension's own Twig through Bulk Send, without a mailer template, with the same queue, schedule, send limits, retries and Send History. The message is rendered for each recipient as their email goes out. An optional recipient filter is checked at that moment, and an optional provider adds variables and headers for each recipient. Each object receives a given source once. cancelBatch() cancels a batch's unsent emails. Pro edition. See Mailer
  • Extra headers on an email. EmailSender::send() takes a headers list, as does the last argument of sendEmail(). Headers the mailer writes itself, invalid names and values with line breaks are dropped and logged
  • Server-only schema fields. A property marked "serverOnly": true can be written only by the site itself: your PHP, automations and extensions. A value sent by anyone else is dropped, admins and API keys included, and with authentication off. The admin form and the inline cell editor show the field read-only, and the counter routes cannot change it. Use it for values such as an order total or a payment status. See Validation
  • Rate limits for extension routes. PublicRateLimiter gives an extension's public routes a named per-IP limit, through hit() in a handler or middleware() on the route. Site owners can change each limit in $settings['rateLimits']. See Extension Points
  • The image builder has tiled text watermarks, outlines and shadows. The ImageWorks image builder now offers the 3.6.5 text-watermark options: a Tile position with its count, and outline and shadow with their colors

Changed

  • Objects with no value sort last, in both directions. A descending sort listed objects missing the property first, so a newest-first or top-rated list began with the undated or unrated ones. Behavior change: they now come last whichever way you sort
  • Extension routes answer HEAD. A HEAD request gets the matching GET route unless the extension registers its own, so link checkers and podcast validators see the same status and headers

Fixed

  • The tcms builder:frontend scaffold builds again. Since 3.6.4 its vite.config.js imported a package the scaffold does not install, so npm run build failed. The scaffold now uses Vite 7. To fix a project made from it in 3.6.4 or 3.6.5, change the first line of frontend/vite.config.js to import { defineConfig } from 'vite'; and run npm install -D vite@7 in frontend/
  • Rate limits no longer block clients that stay under them. Each request restarted the limit's time window, so a steady client was blocked once its total reached the limit. This affected the mailer, counter, MCP, OAuth, XML-RPC, emergency, forgot-password, resend-verification and registration limits
  • Rate limits work in dev mode. The mailer, counter, MCP, OAuth, XML-RPC and emergency limits were off whenever dev mode was on
  • Retry-After gives the real wait. A 429 now says how many seconds are left in the window