Uploaded image for project: 'Lucee Development'
  1. LDEV-2129

Calling canonicalize() with an empty string returns NULL

    Details

    • Type: Incompatibility
    • Status: QA
    • Priority: New
    • Resolution: Unresolved
    • Affects Version/s: 5.2.9.31
    • Fix Version/s: ESAPI 2.1.0.17, 5.3.2.34
    • Labels:
      None
    • Sprint:

      Description

      If you call the canonicalize() function and pass-in an empty-string, the return value is NULL. The canonicalize() page - https://docs.lucee.org/reference/functions/canonicalize.html - states nothing about this behaviour. The docs state that a String is the return value and ACF returns a string.

      See demonstration of behaviour: https://www.bennadel.com/blog/3556-calling-canonicalize-on-an-empty-string-returns-null-in-lucee-5-2-9-31.htm

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                andrew Andrew Dixon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: