Commit ff0acf5
Add URL encoding and null safety to DistributionHttpClient
- Add URLEncoder for proper encoding of query parameters and path segments
- Change isEmpty() to isNullOrEmpty() for null safety on configuration values
- Prevents malformed URLs with special characters and NullPointerExceptions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b238c29 commit ff0acf5
File tree
1 file changed
+10
-7
lines changed- sentry-android-distribution/src/main/java/io/sentry/android/distribution
1 file changed
+10
-7
lines changedsentry-android-distribution/src/main/java/io/sentry/android/distribution/DistributionHttpClient.kt
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
0 commit comments