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 |
|
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.