Ticket #30 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

make sure the filenames are safe

Reported by: sheep Owned by: sheep
Priority: Normal Milestone: 1.4.0
Component: Hatta Wiki Version: 1.3.3dev
Keywords: Cc:

Description

Use the  http://werkzeug.pocoo.org/documentation/dev/utils.html#werkzeug.secure_filename function to make sure the filenames are safe on the filesystem that is being used.

Change History

comment:1 Changed 2 years ago by sheep

  • Status changed from new to closed
  • Resolution set to fixed

That function does too much (stripping characters from the filename making it impossible to recreate the titles), so instead only parts of it were adapted.

On top of that, the function had different behavior on different systems, which would result in incompatible repositories. The function used now has the same behavior on all systems.

Fixed in 8745488a7e28.

Note: See TracTickets for help on using tickets.