szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.51k stars 151 forks source link

backslashes keep doubling #261

Open the-bash-guy opened 2 months ago

the-bash-guy commented 2 months ago

Describe the bug It looks like that at every startup, when a text upload contains backslashes, microbin doubles it, everytime i find my upload changed with double backslashes. This happens also when editing the upload

To Reproduce Steps to reproduce the behavior:

  1. Make a text upload containing some single backslashes like a path (ex. C:\ProgramData)
  2. Reboot the server or edit the upload
  3. Check the upload back again

Expected behavior The upload does not change with all the backslashes doubled

Desktop (please complete the following information):