Now cleaning up input of any \x1A character to avoid potential issues with "hashed" values.

This commit is contained in:
Michel Fortin 2008-06-05 09:38:46 -04:00
parent 8199d0c515
commit 49883b131c

View file

@ -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