Skip to content

Commit f663ec4

Browse files
committed
[#16962] - updating changelog
1 parent 2599e91 commit f663ec4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CHANGELOG-5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Fixed `Phalcon\Tag\Select::optionsFromArray()` not escaping option label text, allowing XSS injection via malicious values; labels are now escaped with `escapeHtml()` and option values with `escapeHtmlAttr()` via the escaper service, consistent with `optionsFromResultset()` [#16660](https://github.com/phalcon/cphalcon/issues/16660)
1313
- Fixed `Phalcon\Mvc\Model::__set()` not clearing the cached related record when a `belongsTo` relation alias is assigned `null`; calling a getter before setting the relation to null caused `preSaveRelatedRecords()` to overwrite the FK back to its previous value on save [#16611](https://github.com/phalcon/cphalcon/issues/16611)
1414
- Fixed `Phalcon\Mvc\View::getActiveRenderPath()` returning only the first candidate path as a string when a single `viewsDir` was configured with multiple registered render engines and the view was not found; the method now collapses the internal `activeRenderPaths` array to a string only when it contains exactly one element, returning the full array of candidate paths in all other cases [#16614](https://github.com/phalcon/cphalcon/issues/16614)
15+
- Fixed `Phalcon\Annotations\AnnotationsFactory::newInstance("memory")` segfaulting the PHP process; the factory invokes `create_instance_params(definition, [options])`, passing an options array to the adapter constructor, but `Phalcon\Annotations\Adapter\Memory::__construct()` accepted no arguments. `Memory::__construct()` now accepts `array options = []` to match the `Apcu` and `Stream` sibling adapters [#16962](https://github.com/phalcon/cphalcon/issues/16962)
1516

1617
### Removed
1718

0 commit comments

Comments
 (0)