Doesn't anyone test variables before using them anymore?
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5945
7612ce4b-ef26-0410-bec9-
ea0150e637f0
}
}
- $actual = $body_part_entity->header->parameters['charset'];
+ if (isset($body_part_entity->header->parameters['charset'])) {
+ $actual = $body_part_entity->header->parameters['charset'];
+ } else {
+ $actual = 'us-ascii';
+ }
+
if ( $actual && is_conversion_safe($actual) && $actual != $default_charset){
$bodypart = charset_decode($actual,$bodypart);
}