Commit 63ac4fa
committed
Add explicit handling for empty auth/whitelist arrays
When no auths or whitelists exist for a site, explicitly remove all
related htpasswd/whitelist files (including wildcards and aliases) and
return early. This makes the cleanup behavior more explicit rather than
silently iterating over an empty array.
Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>1 parent 3e7027c commit 63ac4fa
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
343 | 352 | | |
344 | 353 | | |
345 | 354 | | |
| |||
436 | 445 | | |
437 | 446 | | |
438 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
439 | 457 | | |
440 | 458 | | |
441 | 459 | | |
| |||
0 commit comments