Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luci-mod-system: flash.js: fix mtdname on download
The previous change did not work as intended for partitions with _ in the name. I.e "0:qsee_1". It would output an error "Invalid characters in filename". So fix this by matching and replacing any character except for a-z and 0-9 with "-". Example "0:qsee_1" = I.e "0-qsee-1". Signed-off-by: Kristian Skramstad <[email protected]>
- Loading branch information