booru / philomena

Next-generation imageboard software. This software development project is independent from any image hosting project.
GNU Affero General Public License v3.0
9 stars 10 forks source link

Saving Source change fails if source starts with space character #72

Open basisbit opened 4 years ago

basisbit commented 4 years ago

Describe the bug Saving Source change fails if the source starts with a space character.

To Reproduce Steps to reproduce the behavior:

  1. Go to some test image while being logged in to the booru.
  2. Click on Source button
  3. Replace the Source Url by some valid other Url, then add a space character / " " in front of the address.
  4. Click the Save source button
  5. Reload the page, see that the Url was not changed successfully

Expected behavior The url string should be trimmed and then saved successfully.

Screenshots 6uQ8QVD

Desktop (please complete the following information):