]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/patches/use_packaged_tinymce.patch
Refresh all patches.
[roundcube.git] / debian / patches / use_packaged_tinymce.patch
index 6e7c62a4c36797aad78103c1291872b110023274..15c6bd1122a42651cb4fd6c92e9e791b5922c534 100644 (file)
@@ -1,13 +1,15 @@
-Index: roundcube-0.1~rc2/program/steps/mail/sendmail.inc
+Use tinymce from tinycme package instead of the shipped one.
+
+Index: roundcube/program/steps/mail/sendmail.inc
 ===================================================================
---- roundcube-0.1~rc2.orig/program/steps/mail/sendmail.inc     2007-11-26 11:42:36.000000000 +0100
-+++ roundcube-0.1~rc2/program/steps/mail/sendmail.inc  2007-11-26 11:44:04.000000000 +0100
-@@ -108,7 +108,7 @@
-     if (! in_array($image_name, $included_images))
-       {
-       // add the image to the MIME message
--      $img_file = INSTALL_PATH . '/' . $searchstr . $image_name;
-+      $img_file = '/usr/share/tinymce/www/plugins/emotions/images/' . $image_name;
-       if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
-         $OUTPUT->show_message("emoticonerror", 'error');
+--- roundcube.orig/program/steps/mail/sendmail.inc     2012-09-29 11:30:58.259119253 +0200
++++ roundcube/program/steps/mail/sendmail.inc  2012-09-29 11:31:45.368061359 +0200
+@@ -118,7 +118,7 @@
  
+         // sanitize image name so resulting attachment doesn't leave images dir
+         $image_name = preg_replace('/[^a-zA-Z0-9_\.\-]/i', '', $image_name);
+-        $img_file = INSTALL_PATH . '/' . $searchstr . $image_name;
++        $img_file = '/usr/share/tinymce/www/plugins/emotions/img/' . $image_name;
+         if (! in_array($image_name, $included_images)) {
+           // add the image to the MIME message