Merge pull request #699 from wpreul/master

Small change in the errors example
Merge pull request #700 from wpreul/master

Adding security tests and fixing security bugs
Adding file mode option for inline, attachment or no content-disposition header