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

@@ -4,8 +4,8 @@ namespace CachetHQ\Cachet\Http\Controllers\Api;
use CachetHQ\Cachet\Repositories\MetricPoint\MetricPointRepository;
use Dingo\Api\Routing\ControllerTrait;
use GrahamCampbell\Binput\Facades\Binput;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Input;
class MetricPointController extends Controller
{
@@ -58,6 +58,6 @@ class MetricPointController extends Controller
*/
public function postMetricPoints()
{
return $this->metricPoint->create(Input::all());
return $this->metricPoint->create(Binput::all());
}
}