Remove leading and trailing whitespace from submitted feedback message
and subject.
Bug: T35192
Change-Id: Ie260e3b1b15092ea49dc7b8a1a06e0094a0178a3
fb = this;
// Get the values to submit.
- subject = this.subjectInput.value;
+ subject = $.trim( this.subjectInput.value );
// We used to include "mw.html.escape( navigator.userAgent )" but there are legal issues
// with posting this without their explicit consent
- message = this.messageInput.value;
+ message = $.trim( this.messageInput.value );
if ( message.indexOf( '~~~' ) === -1 ) {
message += ' ~~~~';
}