From 407dcf9e7136341acfbb7573070360885cce31a8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 18 Oct 2008 06:56:11 -0400
Subject: [PATCH] - Fix html signature formatting when identity save error occured (#1485426)

---
 CHANGELOG                                |    5 +++++
 program/include/main.inc                 |    3 ++-
 program/steps/settings/save_identity.inc |    4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 8de421b..b54a297 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,11 @@
 CHANGELOG RoundCube Webmail
 ---------------------------
 
+2008/10/18 (alec)
+----------
+- Fix html2text class autoloading on Windows (#1485505)
+- Fix html signature formatting when identity save error occured (#1485426)
+
 2008/10/15 (alec)
 ----------
 - Add feedback and set busy when moving folder (#1485497)
diff --git a/program/include/main.inc b/program/include/main.inc
index 9223e26..75ad2b3 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -550,7 +550,8 @@
 
   // use value from post
   if (!empty($_POST[$fname]))
-    $value = get_input_value($fname, RCUBE_INPUT_POST);
+    $value = get_input_value($fname, RCUBE_INPUT_POST,
+	    $type == 'textarea' && strpos($attrib['class'], 'mce_editor')!==false ? true : false);
 
   $out = $input->show($value);
          
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index de2b4fc..e19a331 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -28,7 +28,7 @@
 if (empty($_POST['_name']) || empty($_POST['_email']))
   {
   $OUTPUT->show_message('formincomplete', 'warning');
-  rcmail_overwrite_action('edit-identitiy');
+  rcmail_overwrite_action('edit-identity');
   return;
   }
 
@@ -71,7 +71,7 @@
   {
     // show error message
     $OUTPUT->show_message('errorsaving', 'error');
-    rcmail_overwrite_action('edit-identitiy');
+    rcmail_overwrite_action('edit-identity');
     return;
   }
 }

--
Gitblit v1.9.1