Commit a69ebfa
authored
Use base32 encoded cache keys to avoid names starting with a hyphen (#5088)
Modify the _base64 function used for filename generation to ensure
filenames do not start with a hyphen (`-`).
This change prevents issues on Unix-like systems where filenames
beginning with a hyphen can be misinterpreted as command-line options.
in this way we adhere to to the [The Linux Information Project's File
Naming Conventions](https://www.linfo.org/file_name.html):
> "File names should never begin with a hyphen"1 parent db2aece commit a69ebfa
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
0 commit comments