This commit has been accessed 757 times via Git panel.
commit 79fd5d1ff185b83da239a0fd5ab3ae7fbd7be334
tree ee429425e8bd29448367658854f2880f942ed1c7
parent 222ce1ee50a85ee10c8d9a7f6eeb3c6ee46adc48
author Engels Antonio <engels@majcms.org> 1358123746 +0800
committer Engels Antonio <engels@majcms.org> 1358123746 +0800
Remove header_mime2text function from core.php
diff --git a/core.php b/core.php
index 04994c5..5dab22e 100644
--- a/core.php
+++ b/core.php
@@ -205,21 +205,6 @@ if ($server_post_max_size > $server_memory_limit) {
$max_file_size = $server_memory_limit;
}
-function header_mime2text ($header) {
-
- $header_decode = imap_mime_header_decode(str_replace(array('\r\n', '\r', '\n'), ' ', $header));
-
- foreach ($header_decode as $header_decoded) {
-
- $header_text = $header_text . $header_decoded->text;
- }
-
- $header_text = mb_convert_encoding($header_text,"UTF-8","auto");
- $header_text = mb_convert_encoding($header_text,"UTF-8","UTF-8");
-
- return ($header_text);
-}
-
function is_image($path) {
$a = getimagesize($path);
tree ee429425e8bd29448367658854f2880f942ed1c7
parent 222ce1ee50a85ee10c8d9a7f6eeb3c6ee46adc48
author Engels Antonio <engels@majcms.org> 1358123746 +0800
committer Engels Antonio <engels@majcms.org> 1358123746 +0800
Remove header_mime2text function from core.php
diff --git a/core.php b/core.php
index 04994c5..5dab22e 100644
--- a/core.php
+++ b/core.php
@@ -205,21 +205,6 @@ if ($server_post_max_size > $server_memory_limit) {
$max_file_size = $server_memory_limit;
}
-function header_mime2text ($header) {
-
- $header_decode = imap_mime_header_decode(str_replace(array('\r\n', '\r', '\n'), ' ', $header));
-
- foreach ($header_decode as $header_decoded) {
-
- $header_text = $header_text . $header_decoded->text;
- }
-
- $header_text = mb_convert_encoding($header_text,"UTF-8","auto");
- $header_text = mb_convert_encoding($header_text,"UTF-8","UTF-8");
-
- return ($header_text);
-}
-
function is_image($path) {
$a = getimagesize($path);