Uploaded image for project: 'Lucee Documentation'
  1. LD-122

Calling canonicalize() with an empty string returns NULL.

    Details

    • Type: Bug
    • Status: Done
    • Priority: New
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Depending on how hard you squint, this could be either a Documentation bug or a Platform bug. If you call the canonicalize() function and pass-in an empty-string, the return value is NULL. I am calling this a Documentation bug because the canonicalize() page - https://docs.lucee.org/reference/functions/canonicalize.html - states nothing about this behavior. The docs state that a String is the return value.

      See demonstration of behavior: 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:
                Unassigned
                Reporter:
                bennadel Ben Nadel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: