Commit 0d44635
authored
Ensure temporary files are given legal filenames (#126)
The short_file value for some URLs may result in the string "/". For
example, this URL:
http://te-home.net/?do=hublist&get=hublist.config.bz2
results in:
short_file: /
full_file: /?do=hublist&get=hublist.config.bz2
this makes it impossible to save the file. With this change, a random
file name is chosen.1 parent 62985c7 commit 0d44635
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
0 commit comments