Severity:
Medium
Steps to Reproduce:
- Go to contact form
- In the message field, input several spaces (e.g. ” “)
- Click “Submit”
Expected Result:
Validation should prevent submission and show “Please enter a valid message.”
Actual Result:
Form is submitted successfully with no meaningful content. The input was just whitespace.
Impact:
- Database stores empty messages
- Wastes storage or triggers actions without valid user input
- Poor UX and reflects badly on company QA process
Suggested Fix:
Validate trimmed content length
try input.trim().length instead.
Lesson learnt:
“Sometimes, the bug isn’t just in the code, it’s in how much you trust your users to type something real”
Have you ever uncovered a bug while just exploring?
Let’s connect! I share real bugs, solutions, and QA tips regularly.