HornyHorse79 / mirotr

Automatically exported from code.google.com/p/mirotr
1 stars 0 forks source link

Filter HTML tags and entities in connections with Pidgin users #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have an OTR connection with a contact who is using Pidgin
2. Receive a text which originally included one of these four characters: & " < 
> (called HTML entities)
3. OR Receive a text which originally included a newline or which has been font 
formatted.
4. OR Sent a text including any of the four entities.

What is the expected output? What do you see instead?
In cases 2 or 3 you’ll get the HTML escaped version of this: &amp; &quot; 
&lt; &gt; for the entities, <br> for the newline and something like <font face 
…>text</face> for formatted texts.
In case 4 the contact tries to interpret the entities as real HTML code which 
results in funny messages or in not displayed characters.

What version of the product are you using? On what operating system?
Miranda 0.9.2, MirOTR 0.9.1.1

Please provide any additional information below.
I suggest a simple HTML filter. For received messages it replaces HTML code 
(after decryption) with the correct characters. For to be sent and encrypted 
messages it escapes all entites.
To be sure you don’t filter text to contacts who use also Miranda a another 
non-HTML-able client, you could add another column in the contact setting of 
MirOTR. It contains a checkmark for each contact. Then you could mark your 
Pidgin using contacts.

Original issue reported on code.google.com by blockchi...@googlemail.com on 11 Sep 2010 at 7:08

GoogleCodeExporter commented 8 years ago
Planned, but SMP has to be finished first.

Original comment by andreas....@student.kit.edu on 11 Sep 2010 at 7:49

GoogleCodeExporter commented 8 years ago
first tests in r12

Original comment by andreas....@student.kit.edu on 13 Sep 2010 at 6:22

GoogleCodeExporter commented 8 years ago
further implementation in r13 and r14. 
Currently, the output is not very clean, but at least it works.

Original comment by andreas....@student.kit.edu on 16 Sep 2010 at 9:54

GoogleCodeExporter commented 8 years ago
improved in r15 and r16

Original comment by andreas....@student.kit.edu on 16 Sep 2010 at 1:07