فهرست منبع

Another MS fix...

  - Strip <outbind://> tags out. This is a Microsoft only protocol and
    references files local to the sending machine.  This causes issues
    with Internet Explorer.
  - Replace <img src="outbind://"> links with clean images to stop
    issues with Internet Explorer not being able to track down the image.
jangliss 20 سال پیش
والد
کامیت
0dc2c33096
2فایلهای تغییر یافته به همراه17 افزوده شده و 1 حذف شده
  1. 5 0
      ChangeLog
  2. 12 1
      functions/mime.php

+ 5 - 0
ChangeLog

@@ -214,6 +214,11 @@ Version 1.5.1 -- CVS
   - Fix for #855320 where Outlook Express was creating CID: based URLs,
     but not assigning a content-id to the attachment.  This is a bug in
 	Outlook Express and is non-RFC compliant behaviour.
+  - Strip <outbind://> tags out. This is a Microsoft only protocol and
+    references files local to the sending machine.  This causes issues
+	with Internet Explorer.
+  - Replace <img src="outbind://"> links with clean images to stop
+    issues with Internet Explorer not being able to track down the image.
 
 
 Version 1.5.0

+ 12 - 1
functions/mime.php

@@ -1457,6 +1457,16 @@ function sq_fixatts($tagname,
         if (preg_match("/^[\'\"]\s*cid:/si", $attvalue)){
             $attary{$attname} = sq_cid2http($message, $id, $attvalue, $mailbox);
         }
+
+        /**
+         * "Hack" fix for Outlook using propriatary outbind:// protocol in img tags.
+         * One day MS might actually make it match something useful, for now, falling
+         * back to using cid2http, so we can grab the blank.png.
+         */
+        if (preg_match("/^[\'\"]\s*outbind:\/\//si", $attvalue)) {
+            $attary{$attname} = sq_cid2http($message, $id, $attvalue, $mailbox);
+        }
+
     }
     /**
     * See if we need to append any attributes to this tag.
@@ -1857,7 +1867,8 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX') {
                                 "img",
                                 "br",
                                 "hr",
-                                "input"
+                                "input",
+                                "outbind"
                                 );
 
     $force_tag_closing = true;