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

Component Setup
Title Ensure uploaded icons are saved with their filename instead of paths
Date May 30, 2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.8p23 1.4.0 1.5.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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.

To the list of all Werks