- Affected version
- 2.2 Beta 1
Steps to reproduce
The attempted upload does fail with some error message
Actual Result
The logo does get overwritten
- Create a style and upload a logo
- Create an admin with the only permission to view statistics
- Login with the admin account created in step 2
- Navigate to
admin.php?stats/
- Open up browser developer tools
- Using the developer tools, modify the form to have
action="/admin.php?assets/upload" enctype="multipart/form-data"
- Again using the developer tools, add
<input type="file" name="upload"><input type="hidden" name="type" value="logo">
to the form - Click the select file button and select an image with the same name as the logo uploaded in step 1 buth with different content
- Click on button Show
The attempted upload does fail with some error message
Actual Result
The logo does get overwritten
Last edited: