Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios][calendar] Fix url parsing when adding url in calendar event and reminder #24102

Merged
merged 1 commit into from
Sep 22, 2023
Merged

[ios][calendar] Fix url parsing when adding url in calendar event and reminder #24102

merged 1 commit into from
Sep 22, 2023

Conversation

Thomas-Mollard
Copy link
Contributor

Why

Resolves #13804 (the issue closed but the issue was actually never fixed)

When adding a url to an event or a reminder in expo-calendar, the entire url is url-encoded and it cannot be used

How

Use NSURLComponents componentsWithString that correctly parses the url passed as string (see doc) and set url in calendarEvent or reminder if URL of URLComponents is not nil

Test Plan

Tested locally in my application by updating the source code

Checklist

@expo-bot
Copy link
Collaborator

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against 1d77810

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 24, 2023
Copy link
Contributor

@lukmccall lukmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good ✅ Could you add a changelog entry?

@lukmccall lukmccall merged commit 8b21e58 into expo:main Sep 22, 2023
7 of 8 checks passed
lukmccall added a commit that referenced this pull request Sep 22, 2023
@Thomas-Mollard Thomas-Mollard deleted the fix/ios-calendar-url-encoding branch September 22, 2023 12:41
@Thomas-Mollard
Copy link
Contributor Author

Could you add a changelog entry?

I'm sorry, I completely missed your comment!
Thanks a lot for merging and adding the changelog!

brentvatne pushed a commit that referenced this pull request Sep 25, 2023
… reminder (#24102)

# Why

Resolves #13804 (the issue closed but the issue was actually never fixed)

When adding a url to an event or a reminder in expo-calendar, the entire url is url-encoded and it cannot be used

# How

Use `NSURLComponents componentsWithString` that correctly parses the url passed as string (see [doc](https://developer.apple.com/documentation/foundation/nsurlcomponents/1572054-componentswithstring?language=objc)) and set `url` in `calendarEvent` or `reminder` if `URL` of `URLComponents` is not `nil`

# Test Plan

Tested locally in my application by updating the source code

# Checklist

<!--
Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calendar.createEventAsync - entire url parameter is url-encoded
3 participants