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
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.2.8p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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