View Issue Details

IDProjectCategoryView StatusLast Update
0005020SOGoWeb Mailpublic2020-05-12 15:18
Reporterrof Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformDesktopOSDebianOS Version10
Product Version4.3.2 
Fixed in Version5.0.0 
Summary0005020: Incorrect handling of HTML elements when composing plain text emails
Description

We compose e-mails with Firefox and SOGo in a new window as text e-mails. As soon as I use some HTML tags like <textarea>, <select> or <noscript>, the body area of the e-mail window collapses and the upload area is enlarged. If I remove the ">" the area looks normal again. If I use the HTML editor, the tags are not rendered (as expected). But with plain text e-mails the tags would not have to be rendered at all!

Steps To Reproduce

1.) Login by http://demo.sogo.nu
2.) Make sure that "Compose messages in" is set to Plain text"
3.) Write new Mail
4.) Write „<select“ in body field (body area is normal height)
5.) Complete "<select" with ">" (body area collapses)
6.) Toggling the ">" also changes the behavior of the body area

TagsNo tags attached.

Activities

rof

rof

2020-05-12 06:31

reporter  

before_select.png (12,194 bytes)   
before_select.png (12,194 bytes)   
after_select.png (12,028 bytes)   
after_select.png (12,028 bytes)   

Related Changesets

sogo: master 964e6f0c

2020-05-12 11:14

francis


Details Diff
fix(mail(js)): encode HTML entities when computing height of textarea

Fixes 0005020
Affected Issues
0005020
mod - UI/WebServerResources/js/Common/sgAutogrow.directive.js Diff File

Issue History

Date Modified Username Field Change
2020-05-11 15:22 rof New Issue
2020-05-12 06:31 rof File Added: before_select.png
2020-05-12 06:31 rof File Added: after_select.png
2020-05-12 15:17 francis Changeset attached => sogo master 964e6f0c
2020-05-12 15:17 francis Assigned To => francis
2020-05-12 15:17 francis Resolution open => fixed
2020-05-12 15:18 francis Status new => resolved
2020-05-12 15:18 francis Fixed in Version => 5.0.0