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

Fix never expire condition #260

Open runofthemillgeek opened 5 months ago

runofthemillgeek commented 5 months ago

The bodies of if/else were inverted due to which, even if user selects "Never" as the expiry option, the paste would be created with an expiration date. I've flipped the bodies so that selecting "Never" actually creates a never-expiring paste.