- Notifications
You must be signed in to change notification settings - Fork1k
Commit347ab5b
authored
fix(coderd/taskname): ensure generated name is within 32 byte limit (#19612)
The previous logic verified a generated name was valid, _and thenappended a suffix to it_. This was flawed as it would allow a 32character name, and then append an extra 5 characters to it.Instead we now append the suffix _and then_ verify it is valid.1 parent8c731a0 commit347ab5b
1 file changed
+14
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
152 | 151 |
| |
153 | 152 |
| |
154 |
| - | |
155 |
| - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 |
| |
157 | 163 |
| |
158 |
| - | |
| 164 | + | |
159 | 165 |
| |
160 | 166 |
| |
161 | 167 |
| |
|
0 commit comments
Comments
(0)