Commit f4ea32e
committed
Add txid validation to elements_getunblindedurl
Security fix: Validate txid parameter before processing to prevent
potential injection or malformed input issues.
- Checks txid is not empty
- Validates txid is exactly 64 hexadecimal characters
- Returns proper error JSON if validation fails
Code review fix for PR #3601 parent 31376a7 commit f4ea32e
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
192 | 203 | | |
193 | 204 | | |
194 | 205 | | |
| |||
0 commit comments