Severity:

Medium

Steps to Reproduce:

  1. Go to contact form
  2. In the message field, input several spaces (e.g. ”    “)
  3. 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.