projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parsing $message to magicHTML for better handling message/rfc822 attachments
[squirrelmail.git]
/
functions
/
mime.php
diff --git
a/functions/mime.php
b/functions/mime.php
index 178828892bd489c77440bd43a2363594d11625b5..23fa3ce1146bf2f7f9d2afd829906aa93cff7ef8 100644
(file)
--- a/
functions/mime.php
+++ b/
functions/mime.php
@@
-794,7
+794,7
@@
function formatBody($imap_stream, $message, $color, $wrap_at) {
$body = strip_tags( $body );
translateText($body, $wrap_at, $body_message->header->charset);
} else {
$body = strip_tags( $body );
translateText($body, $wrap_at, $body_message->header->charset);
} else {
- $body = MagicHTML( $body, $id );
+ $body = MagicHTML( $body, $id
, $message
);
}
} else {
translateText($body, $wrap_at, $body_message->header->charset);
}
} else {
translateText($body, $wrap_at, $body_message->header->charset);
@@
-1942,7
+1942,7
@@
function sq_sanitize($body,
* @param $id the id of the message
* @return a string with html safe to display in the browser.
*/
* @param $id the id of the message
* @return a string with html safe to display in the browser.
*/
-function magicHTML($body, $id){
+function magicHTML($body, $id
, $message
){
global $attachment_common_show_images, $view_unsafe_images,
$has_unsafe_images, $message;
/**
global $attachment_common_show_images, $view_unsafe_images,
$has_unsafe_images, $message;
/**