Use Binput for xss protection

This commit is contained in:
Graham Campbell
2015-01-02 12:05:50 +00:00
parent e0a6e795b1
commit b001bd60db
14 changed files with 144 additions and 36 deletions

View File

@@ -3,8 +3,8 @@
namespace CachetHQ\Cachet\Http\Controllers;
use CachetHQ\Cachet\Models\Component;
use GrahamCampbell\Binput\Facades\Binput;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
@@ -49,7 +49,7 @@ class DashComponentController extends Controller
*/
public function updateComponentAction(Component $component)
{
$_component = Input::get('component');
$_component = Binput::get('component');
$component->update($_component);
return Redirect::back()->with('savedComponent', $component);
@@ -74,7 +74,7 @@ class DashComponentController extends Controller
*/
public function createComponentAction()
{
$_component = Input::get('component');
$_component = Binput::get('component');
$component = Component::create($_component);
return Redirect::back()->with('component', $component);