From 49883b131cd8be23396bcabfb946661bdf1a9b29 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Thu, 5 Jun 2008 09:38:46 -0400 Subject: [PATCH] Now cleaning up input of any \x1A character to avoid potential issues with "hashed" values. --- markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown.php b/markdown.php index 7edd6a3..4b072fb 100644 --- a/markdown.php +++ b/markdown.php @@ -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