Преглед изворни кода

Fix from stable that should have gone in here too.

indiri69 пре 21 година
родитељ
комит
67539c7062
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      functions/mime.php

+ 8 - 0
functions/mime.php

@@ -676,6 +676,14 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
         }
         ++$i;
     }
+    /* remove the first added space */
+    if ($ret) {
+        if ($htmlsave) {
+            $ret = substr($ret,6);
+        } else {
+            $ret = substr($ret,1);
+        }
+    }
 
     return $ret;
 }