There is no centering
1Pootis1 opened this issue ยท 6 comments
Issue Description: Hello, I have a problem with the map, you can look at this link in more detail, this is an important problem, did you do something with CSS in the latest plugin updates? Link: TownyAdvanced/Towny#5711
- Dynmap Version: v3.3 GA release
- Server Version: Paper 1.17.1-404
- Pastebin of Configuration.txt: https://pastebin.com/PLJCgbjX
- Server Host (if applicable): MajorCore
- Pastebin of crashlogs or other relevant logs: no errors
- Other Relevant Data/Screenshots: TownyAdvanced/Towny#5711
[ ] I have looked at all other issues and this is not a duplicate
[ ] I have been able to replicate this
The <center> tag referred to in the original issue is an obsolete HTML4 tag that browsers are stopping support for - likely broke with a browser update vs anything to do with Dynmap.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center. use <div style="text-align:center"> instead
Found inconsistency in the sanitizer (which is used to protect web users from injection attacks from folks using the markup feature on labels and descriptions.... cannot allow folks to pass in things like javascript or the like) being applied for initial load of markers on a world, and updates (the initial load wasn't being cleansed properly, which was why the obsolete tags were getting through, and then being removed on updates/refreshes). I've added the <center> and <hr> tags to the whitelist, since they're old/obsolete, but safe.