Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
156 views
in Q2A Core by
Attention! Attention! Detekted bug! If a user enters a very, very long word, the word goes beyond the body site.

Example: 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

Please how to fix it? And on my site too.

1 Answer

+1 vote
by
edited by
 
Best answer
Edit the CSS and add "overflow:hidden" or "overflow:auto" to the ".qa-q-view-content" and ".qa-a-item-content" properties. That will stop it stretching the page.

Another solution would be to delete or shorten any words over the length in the backend code. You'd need to look in "qa-post-update.php" and "qa-post-create.php". That's a bit advanced and probably not worth it, the real solution is to edit or hide people's posts to remove spam.
...