Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1891

ArrayContains returns true on partial matches (ACF compatibility issue)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 3.3.2.009
    • Fix Version/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      <cfset a = ["partial match"]>
      <cfoutput>#ArrayContains(a, "match")#</cfoutput>
      

      Railo outputs "1" (i.e. true).
      ACF outputs "NO".
      Railo should output false (or equivalent), to be compatible with ACF.

      Show
      <cfset a = [ "partial match" ]> <cfoutput>#ArrayContains(a, "match" )#</cfoutput> Railo outputs "1" (i.e. true). ACF outputs "NO". Railo should output false (or equivalent), to be compatible with ACF.

      Description

      ArrayContains returns true if an array element contains a partial match. ACF only returns true if an element contains a complete match.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                knoeperd Jeroen Knoef
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: