Fixed form input.

Added htmlentities conversion to the form input
This commit is contained in:
Maks Surguy
2012-10-09 13:59:59 -07:00
parent 7d80eaea69
commit 41d07071b2
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
global:
env:
- LARAVEL_ENV: production
web1:
name: laravelajaxexample
shared_writable_dirs:

View File

@@ -92,8 +92,8 @@ Route::post('submit', function()
{
// When the form is submitted, we can do some DB queries and let the user know that the form was submitted.
$name = Input::get('name');
$checker = Input::get('checker');
$name = e(Input::get('name'));
$checker = e(Input::get('checker'));
$data = array(
"html" => '