Browse Source

charsetDecode / htmlspecialchar usage is a mess :-(

stekkel 22 năm trước cách đây
mục cha
commit
7def0a6306
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      functions/mime.php

+ 1 - 0
functions/mime.php

@@ -271,6 +271,7 @@ function translateText(&$body, $wrap_at, $charset) {
             sqWordWrap($line, $wrap_at);
         }
         $line = charset_decode($charset, $line);
+	$line = htmlspecialchars($line);
         $line = str_replace("\t", '        ', $line);
 
         parseUrl ($line);