6.0.0-beta1
7/7/25

[#11986] Problem with spellchecking in HTML messages
Summary Problem with spellchecking in HTML messages
Queue IMP
Queue Version 6.0.3
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester david.fernandez (at) ehu (dot) es
Created 01/21/2013 (4550 days ago)
Due
Updated 01/22/2013 (4549 days ago)
Assigned 01/21/2013 (4550 days ago)
Resolved 01/22/2013 (4549 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/22/2013 10:48:36 AM Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in Horde_Core 2.1.6.
01/22/2013 10:47:58 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 7caaa2dfd65f86def1383abf134ab57818d2ba61
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Jan 22 03:46:43 2013 -0700

     [mms] Fix spellchecking on HTML data (Bug #11986).

     Passing the html paramter got lost somewhere.

  .../lib/Horde/Core/Ajax/Imple/SpellChecker.php     |    7 ++++---
  framework/Core/package.xml                         |    2 ++
  2 files changed, 6 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/7caaa2dfd65f86def1383abf134ab57818d2ba61
01/21/2013 04:47:51 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
01/21/2013 03:38:45 PM david (dot) fernandez (at) ehu (dot) es Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Problem with spellchecking in HTML messages
Due ⇒ 01/21/2013
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
The mode (HTML or Text) is not passed to the spellchecker.
  The Spellchecker always assumes that the text is simple text. If we 
compose a HTML message that contains the & character (HTML entity like 
&nbsp;...) and then we use the spellchecker, the & characters are 
escaped to &amp;. As a consecuence the HTML entities are broken and 
part of they are displayed in the message.

To reproduce:
- Compose a message in HTML mode
- Insert a table with 1 or more empty cells.
- Use spellchecker
- When returning from spellchecking in the empty cells appears 
"&nbsp;". In the source code the original "&nbsp;" are replaced by 
"&amp;nbsp;".

Saved Queries