Hi there,

As I was looking a little closer in your module I found several bugs in your header parsing:

  • preg_match() to test for the tabs, only a tab at the very beginning need to be taken in account, not any tag
  • Possible use of $key before it is defined (in case there were a tab on the very first line, also unlikely, you never know!)
  • htmlentities() used on $value but not on $line when a tab is found

I'm attaching a patch.

Thank you.
Alexis Wilke