Now cleaning up input of any \x1A character to avoid potential issues with "hashed" values.
This commit is contained in:
parent
8199d0c515
commit
49883b131c
1 changed files with 2 additions and 2 deletions
|
|
@ -275,8 +275,8 @@ class Markdown_Parser {
|
|||
#
|
||||
$this->setup();
|
||||
|
||||
# Remove UTF-8 BOM, if present.
|
||||
$text = preg_replace('{^\xEF\xBB\xBF}', '', $text);
|
||||
# Remove UTF-8 BOM and marker character in input, if present.
|
||||
$text = preg_replace('{^\xEF\xBB\xBF|\x1A}', '', $text);
|
||||
|
||||
# Standardize line endings:
|
||||
# DOS to Unix and Mac to Unix
|
||||
|
|
|
|||
Loading…
Reference in a new issue