Fixes
LoginLinkAuthenticatornow applies theurlCheckeroption, which was ignored before. An arrayloginUrlalso matchespluginandprefixwhen given, and non-string tokens are rejected. TheAuthentication.CakeRouterchecker name is mapped toAuthentication.Default. #346CommonComponent::getSafeRedirectUrl()rejects non-string values and URLs with backslashes or control characters.RefererRedirectComponentrejects those and protocol-relative URLs. #346CommonComponent::allowExtensions()accepts requests without an extension when the empty string is in the allowed list. #346ShuntRequestControllerfalls back to the first allowed language key instead of its label. #346Mailer::send()restores the locale when sending throws.FileLog::write()restores thedebugand a pre-existingcustomlog config, also on failure, and no longer fails for plain objects with the trace option. #346Tools\I18n\DateTime,CommonComponent::forceCache()andTokensTableno longer depend on the globalHOUR,DAY,WEEKand related constants. #346DateTime::period()ignores leading and trailing whitespace. #343StringBehaviorthrows anInvalidArgumentExceptionfor a filter that is not callable. #343- The error handler's 404 exception blacklist now matches subclasses. #346
MobileComponentsets theMobiletheme without switching to theThemeview class, which no longer exists. #346- Removed
finfo_close()andcurl_close()calls that are deprecated in current PHP. #346
Upgrade notes
LoginLinkAuthenticatornow uses the Authentication plugin'sUrlCheckerTrait. Subclasses should check for conflicts with_getUrlChecker(),createUrlChecker()and_checkUrl(). If you seturlChecker, it is enforced from now on.Tools\I18n\DateTimedefines protected finalDURATION_*constants. Subclasses must not redefine those names.- The
yangqi/htmldomsuggestion was removed fromcomposer.json; the plugin has no class that uses it.
Full Changelog: 3.13.2...3.14.0