Commit 6048a5c
Add cookie URL validation check to prevent crash
Summary:
Add defensive check to validate components.URL before using it to load cookies.
If NSURLComponents fails to parse the URL or returns nil for components.URL,
this prevents passing nil to cookiesForURL which could cause issues in the
network stack.
Differential Revision: D943755281 parent 621cc01 commit 6048a5c
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
0 commit comments