Closed Bug 1088772 Opened 11 years ago Closed 11 years ago

Sending a blank line breaks OTR

Categories

(Instantbird Graveyard :: Conversation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arlolra, Assigned: arlolra)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch null.patch (obsolete) — Splinter Review
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36 Steps to reproduce: Sent a message with a blank line using the OTR extension. Actual results: IRC split the lines and the empty message fell back to original encrypted message when displaying the outgoing message. Expected results: Displayed the blank line.
Summary: null → Sending a blank line breaks OTR
Comment on attachment 8511139 [details] [diff] [review] null.patch This needs a comment, otherwise someone will look at the code, clean it up with || and re-introduce the bug.
Attachment #8511139 - Attachment is patch: true
Attachment #8511139 - Attachment mime type: text/x-patch → text/plain
Attached patch null.patch from comment 1 (obsolete) — Splinter Review
Attachment #8511139 - Attachment is obsolete: true
Attachment #8511164 - Flags: review?(florian)
Attachment #8511164 - Flags: review?(aleth)
Comment on attachment 8511164 [details] [diff] [review] null.patch from comment 1 Review of attachment 8511164 [details] [diff] [review]: ----------------------------------------------------------------- ::: chat/components/src/imConversations.js @@ +37,5 @@ > + // Explicitly test for null so that blank messages don't fall back to > + // the original. Especially problematic in encryption extensions like OTR. > + return this._displayMessage !== null > + ? this._displayMessage > + : this.prplMessage.originalMessage; Nit: Please put operators at the ends of lines, thanks!
Attachment #8511164 - Attachment is obsolete: true
Attachment #8511164 - Flags: review?(florian)
Attachment #8511164 - Flags: review?(aleth)
Attachment #8511205 - Flags: review?(florian)
Attachment #8511205 - Flags: review?(clokep)
Attachment #8511205 - Flags: review?(aleth)
Attachment #8511205 - Flags: review?(clokep)
Attachment #8511205 - Flags: review?(florian)
Attachment #8511205 - Flags: review?(aleth)
Attachment #8511205 - Flags: review+
Keywords: checkin-needed
Assignee: nobody → arlolra
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: