Closed Bug 517293 Opened 16 years ago Closed 16 years ago

Shouldn't be able to submit empty forum posts

Categories

(support.mozilla.org :: Forum, task)

task
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: jsocol)

References

()

Details

(Whiteboard: aaq sumo_only)

Attachments

(1 file)

Whiteboard: aaq
Attached patch patch, v1Splinter Review
This prevent just whitespace from being used in the question field and requires a non-whitespace description on the last step. Neither field has a minimum length.
Attachment #402198 - Flags: review?(laura)
Comment on attachment 402198 [details] [diff] [review] patch, v1 I'd be happier if we added some server side validation to this, but this works fine - if you have time a revised patch would be great.
Attachment #402198 - Flags: review?(laura) → review+
FWIW, the no-JS form complains appropriately if you leave either of those blank. http://support-stage.mozilla.org/tiki-ask_a_question.php?locale=en-US&forumId=1
r52167 / r52168 It looks like it does do server-side validation: lines 62 and 157 of tiki-ask_a_question.php.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: aaq → aaq sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: