Commit c8a5fa1
committed
fixup: use validated str from validate_resource_name; also validate range
- drive: use the &str returned by validate_resource_name(parent)? directly
in json! rather than the original untrusted input
- sheets: validate config.range in both build_append_request and
build_read_request, since the range is used as a URL path segment in the
Sheets API (spreadsheets/{id}/values/{range})1 parent b03428d commit c8a5fa1
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
0 commit comments