Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 12, 20205 yr 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?
March 13, 20205 yr All user input should be validated server side as a matter of design. This is not a good thing at all.
March 13, 20205 yr 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.
March 13, 20205 yr 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.
March 13, 20205 yr Author 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 🙂
Archived
This topic is now archived and is closed to further replies.