jamf / scout-public

A tool to aggregate devices across multiple MDM servers
GNU General Public License v3.0
11 stars 3 forks source link

Devices with special characters or emoji in the name fail to insert #1

Closed jacobschultz closed 5 years ago

jacobschultz commented 5 years ago

If the device name in the Jamf Pro Server has a special character or an emoji in the device name it will fail to insert into the Scout database.

While everything going into the database is using prepared statements and escaped, these characters should also be pruned.

Steps to Reproduce:

  1. Name your iOS Device (Settings > General) something with Specail Characters AND Emojis in the name.
  2. Enroll this device to a Jamf Pro Server
  3. Add this server to scout and have scout grab devices from that server
  4. Grabbing the device with special chars in the name should fail

Pull Request Ready When: