Werk #4750: Ensure uploaded icons are saved with their filename instead of paths

Komponente Setup
Titel Ensure uploaded icons are saved with their filename instead of paths
Datum 30.05.2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.8p23 1.4.0 1.5.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

Uploaded icons may be saved with their full origin path as file name (the location the file is stored on the client) with some browsers. This could end up in paths like this:

C:\Users\Username\Documents\Icons\service.png will be stored in Check_MK like ~/local/share/check_mk/web/htdocs/images/icon/C:\Users\Username\Documents\Icons\service.png

These files could not be used by the user after upload. These files are now saved with their filename as expected.

Zur Liste aller Werks