diff options
author | Mole Shang <[email protected]> | 2023-08-06 18:45:37 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-06 18:45:37 +0800 |
commit | bde03538d66c37d5690ab321173eb83ecfcaf2ff (patch) | |
tree | ae7bc81f0ca5ff8562afa61bbd7d0af94195b25a /src/logger.c | |
parent | c21d660c0932c45bde08a92ffa2686fd472b1b9e (diff) | |
download | hinata-bde03538d66c37d5690ab321173eb83ecfcaf2ff.tar.gz hinata-bde03538d66c37d5690ab321173eb83ecfcaf2ff.tar.bz2 hinata-bde03538d66c37d5690ab321173eb83ecfcaf2ff.zip |
process_url: strip illegal characters in filename
There are edge cases when a retrived title contains illegal characters
(e.g. '/').
Replace it with a space to ensure a valid filename.
Reproducible case:
https://www.bilibili.com/video/av20827366/
(title="【2K/60fps】这可能是我做过最美的miku了【boomclap布料解算版】")
Diffstat (limited to 'src/logger.c')
0 files changed, 0 insertions, 0 deletions