Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jock3r Posted March 12, 2020 Posted March 12, 2020 Hello there, I am currently facing an issue with signature's font-size not having a server-side check to prevent signatures like that The font-size shown here is 2000px and someone can manage to do that by simply editing the request sent when you save the signature. Is there anything to do to limit this? CoffeeCake 1
CoffeeCake Posted March 13, 2020 Posted March 13, 2020 All user input should be validated server side as a matter of design. This is not a good thing at all.
opentype Posted March 13, 2020 Posted March 13, 2020 I’m certain HTML input is always validated server-side. But mostly for security reasons. You would need a kind of artificial intelligence program to decide what visually breaks the output somehow. There are thousands of things one can do with HTML styling that other readers or the admin wouldn’t want. Personally, I would just deal with that through moderation.
Morrigan Posted March 13, 2020 Posted March 13, 2020 You can't disable the WYSIWYG editor BUT you can limit height of signatures by adding this to your custom.css: [data-role="memberSignature"] { max-height: 430px; overflow: hidden; } It's what I do on my site because I have a max-signature height rule of 400px (because people go crazy with images too loves, even if they get just one). You have to add the extra 30px because it includes the hr and margin in the section so they get their true height. Meddysong, opentype and Jock3r 3
Jock3r Posted March 13, 2020 Author Posted March 13, 2020 (edited) 6 hours ago, Morrigan said: You can't disable the WYSIWYG editor BUT you can limit height of signatures by adding this to your custom.css: [data-role="memberSignature"] { max-height: 430px; overflow: hidden; } It's what I do on my site because I have a max-signature height rule of 400px (because people go crazy with images too loves, even if they get just one). You have to add the extra 30px because it includes the hr and margin in the section so they get their true height. Yeah, I had the same solution but I just wanted to see if it was possible to do it otherwise. I currently have overflow set to auto. Thank you though for the input 🙂 Edited March 13, 2020 by Jock3r
Recommended Posts