Skip to content

needed a null check in parsedown.php #375

Open
@unmodify

Description

@unmodify

Love the project, all the best:

$line was null, which hurt my php.
So, my fix:
line num #144 in Parsedown.php:
foreach ($parts as $part)
{
$lineLength=0;
if ($line)
{
$lineLength = mb_strlen($line, 'utf-8');
}
$shortage = 4 - $lineLength % 4;

$line .= str_repeat(' ', $shortage);
$line .= $part;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions