Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8290

Cordova contacts plugin crashes if any one has a contact name with new line chars.

    XMLWordPrintableJSON

Details

    Description

      When i tried to search contacts using cordova contacts plugin, it crashes when a contact has line break chars in its name (i.e. formatted, given, family etc). For example i have a contact name in phone ABC<press return>DEF.
      Cordova plugin is returning this name as
      ...
      name: {
      formatted: 'ABC\U2028DEF'
      ...
      }
      ...
      which is causing issue. Because it is not a valid JSON object.

      Attachments

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              mrameezraja Rameez Raja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: