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.66k stars 167 forks source link

Special characters are escaped repeatedly #247

Open gera2ld opened 9 months ago

gera2ld commented 9 months ago

Describe the bug Special characters are escaped repeatedly when editing an upload.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://pub.microbin.eu/
  2. Create an upload with content Here is a symbol: $.
  3. Click Edit and Save, the content becomes Here is a symbol: \$.
  4. Click Edit again, the content becomes Here is a symbol: \\\$.

Expected behavior No redundant escaping.