lord / middleman-php

Parse PHP files in Middleman
MIT License
35 stars 9 forks source link

Escaping $_POST variables #10

Closed gitviola closed 9 years ago

gitviola commented 9 years ago

I use middleman-php for a contact form api. If I include an ' within an input field and post it then I get the following error:

Parse error: syntax error, unexpected 's' (T_STRING) in - on line 1

No code of my php file gets executed.

Update: The problem must be in the injections.rb and has to do with escaping