*
* @author Marc Groot Koerkamp
* @copyright 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright 2002-2014 The SquirrelMail Project Team
+ * @copyright 2002-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
}
}
- if (($line != '' && $line{0} == '-' || $header) && isset($boundaries[0])) {
+ if (($line != '' && $line[0] == '-' || $header) && isset($boundaries[0])) {
$cnt=count($boundaries)-1;
$bnd = $boundaries[$cnt]['bnd'];
$bndreg = $boundaries[$cnt]['bndreg'];
$bndlen = strlen($reg[1]);
$bndend = false;
if (strlen($line) > ($bndlen + 3)) {
- if ($line{$bndlen+2} == '-' && $line{$bndlen+3} == '-')
+ if ($line[$bndlen+2] == '-' && $line[$bndlen+3] == '-')
$bndend = true;
}
if ($bndend) {
$entStr = CalcEntity("$entStr",0);
$content_indx++;
$content[$content_indx]=array();
- $content[$content_indx]['ent'] = '<a href="#'."$entStr \">$entStr".'</a>';
+ $content[$content_indx]['ent'] = '<a href="#' . $entStr . '">' . $entStr . '</a>';
$pre .= '</div><div class="entheader" id="'.
- $entStr.'H"><a name="'."$entStr".'"><b><font color="'.$color[2].'">';
+ $entStr.'H"><a name="'."$entStr".'"></a><b><font color="'.$color[2].'">';
$end .= '</font></b>';
$header = true;
$mimepart = false;