Skip to content

5.3.9

@markstory markstory tagged this 15 Nov 20:06
I recently added more stringent validation on the `dataType` parameter
of `cast()` as it was reported as a potential SQL injection vector. The
validation I added was very strict and could cause regressions in
applications with advanced usage of `cast()` expressions.

I chose to add special cased validation for cast() instead of modifying
ensureSimpleString() as we don't necessarily want to accept SQL data
types in all of the locations that ensureSimpleString() is used.

Fixes #19775
Assets 2
Loading