]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/patches/use_packaged_tinymce.patch
Imported Debian patch 0.2.1-1
[roundcube.git] / debian / patches / use_packaged_tinymce.patch
index 7b3a1ffc00535fffda5d737e47a6fe77dff85b99..f2a7a91b4b6f455476c66b88a8c853b48c8cd91e 100644 (file)
@@ -4,10 +4,10 @@ Use tinymce from tinycme package instead of the shipped one.
 +++ roundcube-0.1~rc2/program/steps/mail/sendmail.inc  2007-11-26 11:44:04.000000000 +0100
 @@ -123,7 +123,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;
+         // 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))
-       {
+         if (! in_array($image_name, $included_images)) {
+           // add the image to the MIME message