Canonicalize() does not support 4th parameter throwOnError added in CF11

Description

Adobe ColdFusion 11 added a 4th parameter throwOnError to Canonicalize().

Lucee does not support the presence more than 3 parameters, it throws the following error:

lucee.runtime.exp.TemplateException: too many Attributes (3:4) in function call [Canonicalize]

See documentation: https://cfdocs.org/canonicalize

Activity

Show:
Pothys - MitrahSoft
December 21, 2020, 11:22 AM
Michael Offner
December 18, 2020, 4:22 PM

can you please resolve the merge conflict

Adam Tuttle
September 19, 2019, 11:41 AM

+1

Ben Reid
August 8, 2019, 4:49 AM

Pothys - MitrahSoft
August 7, 2019, 2:22 PM

I've added a fix for this issue. Created a new fourth attribute throwOnError as Boolean type (false by default).

Pull Request: https://github.com/lucee/extension-esapi/pull/1

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Michael Offner

Reporter

Ben Reid

Labels