From 4d87565f74a9aa536fd569b9cba0392fc0ccfa59 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Jan 2012 09:09:14 -0600 Subject: [PATCH] workaround magic quotes. --- laravel/laravel.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/laravel.php b/laravel/laravel.php index d6d64424..a27d9c00 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -110,6 +110,11 @@ switch (Request::method()) */ unset($input[Request::spoofer]); +if (function_exists('get_magic_quotes_gpc') and get_magic_quotes_gpc()) +{ + $input = stripslashes($input); +} + Input::$input = $input; /**