Commit f22d268
committed
Validate Set-ConfluenceConfig input at the boundary
Reject the reserved 'ID' config key and require PerPage to be a positive integer before persisting, so a caller cannot corrupt the stored configuration or feed an invalid v2 'limit' value into Invoke-ConfluenceRestMethod (review thread on Set-ConfluenceConfig L37).1 parent d26bc21 commit f22d268
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
| |||
0 commit comments