Commit c8c05b5
committed
fix(alibaba): anchor token-plan host suffix and apply ruff format
Anchor the maas.aliyuncs.com suffix check on a leading dot so spoofed
hosts (e.g. evilmaas.aliyuncs.com) no longer match the token-plan
quota-skip path, resolving the CodeQL py/incomplete-url-substring-
sanitization alert. Also wrap the long ALIBABA_TOKEN_PLAN_BASE_URL
literal to satisfy ruff format.1 parent dbdcd49 commit c8c05b5
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments