thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
185 stars 17 forks source link

Resolve file path issues when Publisher name contains spaces #24

Closed foxbuntu closed 11 months ago

foxbuntu commented 11 months ago

When a publisher name is entered in the UI with spaces, the file name generated by the save_file function replaces them with underscores, however the database save function was not. This resulted in the download/delete/edit functions failing with a 404 error.

Normalizing the publisher name with secure_filename prior to use in all further processing resolves this