Closed divergentdave closed 10 years ago
Good call - there is a section to do that, but it only checks for /
. Updating it for the remaining characters is a good idea.
Alternatively, the report_id
field could be pre-processed so that any of the invalid characters are auto-replaced with -
. This runs the risk of collisions, though.
Here's a list of problem path names I ran into on a recent test run.
I see all the checkboxes are checked - is this good to review/merge?
I have one more commit to add with the validation end of this
Nice! :+1:
I've been cleaning these up as I go along, but we should make sure that all the scrapers are generating
report_id
s that are valid filenames on Windows, and then add checks to enforce that invalidate_report()
. In particular, we should check for these characters:\ / : * ? " < > |
(and newline, and carriage return) and make sure that the length isn't too long.