Having a folder with spaces in the wiki breaks pages

Summary

After cloning the wiki, if you add a folder to it with spaces in the name it breaks the "Files" page as well as any pages contained in the folder.

Steps to reproduce

  1. Clone a wiki locally.
  2. Create a folder with a space in the name, put some file in it.
  3. Commit your changes.
  4. Attempt to open the "Files" tab
  5. Try open the file you put into the folder (you'll need to adjust a link to it and add the folder beforehand, replacing the space with a dash)

Expected behavior

The pages and files tab should load as normal .

Actual behavior

Both give Errors with the code 500. "Whoops, something went wrong on our end."

Other files are unaffected as long as they're not in the folder.

Output of checks

This bug happens on GitLab.com

Assignee Loading
Time tracking Loading