]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/patches/use_packaged_tinymce.patch
Fix patchs
[roundcube.git] / debian / patches / use_packaged_tinymce.patch
index db835faf863d4eac5878bf24fa1a402ba2a5901a..f2a7a91b4b6f455476c66b88a8c853b48c8cd91e 100644 (file)
@@ -1,37 +1,13 @@
---- roundcube_0.1-rc2/program/js/editor.js     2007-06-09 01:47:57.000000000 +0200
-+++ roundcube_0.1-rc2/program/js/editor.js     2007-10-29 21:47:07.000000000 +0100
-@@ -27,10 +27,7 @@
-                  theme_advanced_buttons3 : '',
-                  theme_advanced_toolbar_location : 'top',
-                  theme_advanced_toolbar_align : 'left',
--                 extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]',
--                 content_css : skin_path + '/editor_content.css',
--                 popups_css : skin_path + '/editor_popup.css',
--                 editor_css : skin_path + '/editor_ui.css'
-+                 extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]'
-                });
-   }
+Use tinymce from tinycme package instead of the shipped one.
+
+--- 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
+@@ -123,7 +123,7 @@
  
---- roundcube_0.1-rc2/program/steps/settings/edit_identity.inc 2007-04-28 20:07:12.000000000 +0200
-+++ roundcube_0.1-rc2/program/steps/settings/edit_identity.inc 2007-10-29 21:46:33.000000000 +0100
-@@ -49,9 +49,6 @@
-   $OUTPUT->include_script('tiny_mce/tiny_mce_src.js');
-   $OUTPUT->add_script("tinyMCE.init({ mode : 'specific_textareas'," .
-                                     "apply_source_formatting : true," .
--                                    "content_css : '\$__skin_path' + '/editor_content.css'," .
--                                    "popups_css : '\$__skin_path' + '/editor_popups.css'," .
--                                    "editor_css : '\$__skin_path' + '/editor_ui.css'," .
-                                     "theme : 'advanced'," .
-                                     "theme_advanced_toolbar_location : 'top'," .
-                                     "theme_advanced_toolbar_align : 'left'," .
---- roundcube_0.1-rc2/program/steps/mail/sendmail.inc  2007-09-26 10:13:21.000000000 +0200
-+++ roundcube_0.1-rc2/program/steps/mail/sendmail.inc  2007-10-29 22:04:20.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');
+         // 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