Releases: dereuromark/cakephp-tools
Releases · dereuromark/cakephp-tools
3.12.6
Fixes
- Fix
autoPrefixUrl()callingurlExists()with invalid URL when input already hashttps://protocol
Full Changelog: 3.12.5...3.12.6
3.12.5
Fixes
-
Add timeout to
urlExists()cURL request (#315)CURLOPT_TIMEOUT(5s) - total request timeoutCURLOPT_CONNECTTIMEOUT(3s) - connection timeoutCURLOPT_FOLLOWLOCATIONwithMAXREDIRS(3) - follow redirectscurl_close()- properly clean up handle
-
Add timeout to remaining HTTP requests (#316)
Utility::urlExists()fallback: 5s stream context timeoutUtility::getHeaderFromUrl(): 5s timeoutMime::getMimeTypeByUrl(): 5s timeoutMessage::_readFile(): 10s timeout
-
Fix
autoPrefixUrl()callingurlExists()with invalid URL- URLs with
https://are now returned as-is - URLs with
http://are properly upgraded by replacing the prefix - Prevents invalid URLs like
https://https://example.com
- URLs with
This prevents requests from hanging indefinitely when servers don't respond.
3.12.4
Improvements
- Use
ServerRequest::clientIp()instead ofenv('REMOTE_ADDR')for proper proxy header handling
Full Changelog: 3.12.3...3.12.4
3.12.3
Fixes
- Fix page action URLs to use dasherized format instead of camelCase
Enhancements
- Add dynamic
scopeandonDirtyoptions to SluggedBehavior
Full Changelog: 3.12.2...3.12.3
3.12.2
Improvements
- Fix CakePHP 5.3.0 behavior method deprecations - #310
- Add uniqueCallback option to SluggedBehavior - #312
Full Changelog: 3.12.1...3.12.2
3.12.1
Fixes
- Remove deprecated _execute() method from ContactForm
- Fix double base64 encoding of blob attachments
Note: PHP 8.2+ now.
Full Changelog: 3.12.0...3.12.1
3.12.0
3.11.2
3.11.1
3.11.0
Improvements
- Allow
Jsonablebehavior to store comma separated list in a text field. - Allow only specific extensions (or non-ext routing) for controller actions and throw 404 otherwise.
Full Changelog: 3.10.3...3.11.0