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

Javascript shell does not escape quotes in field names

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      > x = {}
      { }
      > x['":false,"'] = '"'
      "
      > x
      { "":false,"" : "\"" }
      > interpreterVersion()
      SpiderMonkey 1.7
      
      > x = {}
      { }
      > x['":false,"'] = '"'
      "
      > x
      { "":false,"" : "\"" }
      > interpreterVersion()
      V8 3.12.19
      

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            sverch Shaun Verch (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: