microsoftgraph / msgraph-sdk-ruby

Microsoft Graph Ruby client library for v1 APIs
https://graph.microsoft.com
MIT License
100 stars 68 forks source link

`#filter` creates invalid queries; does not escape invalid characters #53

Closed KevinColemanInc closed 1 year ago

KevinColemanInc commented 5 years ago
graph.me.mail_folders.find(INBOX_NAME)
                     .messages
                     .filter(subject: "hello'")

If you search of an email with a subject containing a ', then it creates a query like subject eq 'hello''

baywet commented 1 year ago

Thanks for reporting this issue. That version of the SDK has been deprecated a number of years ago. We're now starting the work on a new generation of this SDK and you can learn all about it on the updated readme page.