Skip to content

3.14.0

Choose a tag to compare

@dereuromark dereuromark released this 25 Oct 13:29
· 6 commits to master since this release
c260979

Fixes

  • LoginLinkAuthenticator now applies the urlChecker option, which was ignored before. An array loginUrl also matches plugin and prefix when given, and non-string tokens are rejected. The Authentication.CakeRouter checker name is mapped to Authentication.Default. #346
  • CommonComponent::getSafeRedirectUrl() rejects non-string values and URLs with backslashes or control characters. RefererRedirectComponent rejects those and protocol-relative URLs. #346
  • CommonComponent::allowExtensions() accepts requests without an extension when the empty string is in the allowed list. #346
  • ShuntRequestController falls back to the first allowed language key instead of its label. #346
  • Mailer::send() restores the locale when sending throws. FileLog::write() restores the debug and a pre-existing custom log config, also on failure, and no longer fails for plain objects with the trace option. #346
  • Tools\I18n\DateTime, CommonComponent::forceCache() and TokensTable no longer depend on the global HOUR, DAY, WEEK and related constants. #346
  • DateTime::period() ignores leading and trailing whitespace. #343
  • StringBehavior throws an InvalidArgumentException for a filter that is not callable. #343
  • The error handler's 404 exception blacklist now matches subclasses. #346
  • MobileComponent sets the Mobile theme without switching to the Theme view class, which no longer exists. #346
  • Removed finfo_close() and curl_close() calls that are deprecated in current PHP. #346

Upgrade notes

  • LoginLinkAuthenticator now uses the Authentication plugin's UrlCheckerTrait. Subclasses should check for conflicts with _getUrlChecker(), createUrlChecker() and _checkUrl(). If you set urlChecker, it is enforced from now on.
  • Tools\I18n\DateTime defines protected final DURATION_* constants. Subclasses must not redefine those names.
  • The yangqi/htmldom suggestion was removed from composer.json; the plugin has no class that uses it.

Full Changelog: 3.13.2...3.14.0