Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5809

Double quote escaping bugged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.5.0
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      This is not allowed :

      a =

      {s:"\""}

      db.test.save(

      {s:"\""}

      )

      This is allowed :

      a = "\""
      db.test.save(

      {s:a}

      )

      Shouldn't all of the above work (it does in all other JavaScript contexts I'm aware of).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tad Tad Marshall
              Reporter:
              remonvv Remon van Vliet
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: