Commit 72cb8139 authored by jonnybradley's avatar jonnybradley

[FIX] connect: Remove the staticKeyFilters and use the input filters as...

[FIX] connect: Remove the staticKeyFilters and use the input filters as intended in the Controller classes (apologies for leaving this so messy for so long)
parent 7a9bb4ce
......@@ -143,7 +143,7 @@ class Services_Connect_Client
function action_cancel($input)
{
$guid = $input->guid->filter();
$guid = $input->guid->text();
if ($guid) {
$this->connectlib->removeGuid($guid);
$r = $this->remote->cancel(array('connect_data' => array('guid' => $guid)));
......
......@@ -52,7 +52,7 @@ class Services_Connect_Server
$rdata = array();
$connectData = $input->connect_data->filter();
$connectData = $input->connect_data->xss();
if (!empty($connectData)) {
$caplib = $this->getCaptcha();
......@@ -98,7 +98,7 @@ class Services_Connect_Server
{
$rdata = array();
$connectData = $input->connect_data->filter();
$connectData = $input->connect_data->xss();
if (!empty($connectData)) {
$guid = $connectData['guid'];
......@@ -129,7 +129,7 @@ class Services_Connect_Server
function action_cancel($input)
{
$connectData = $input->connect_data->filter();
$connectData = $input->connect_data->xss();
$guid = $connectData['guid'];
$isPending = $this->connectlib->isPendingGuid($guid);
......
......@@ -21,10 +21,6 @@ $inputConfiguration = array(array(
'staticKeyFilters' => array(
'action' => 'word',
'controller' => 'text',
// for tiki connect
'guid' => 'text',
'captcha' => 'alnum',
'status' => 'word',
// confirm modals
'title' => 'xss',
'customAction' => 'xss',
......@@ -35,7 +31,6 @@ $inputConfiguration = array(array(
'modal' => 'digit',
),
'staticKeyFiltersForArrays' => array(
'connect_data' => 'xss',
// confirm modals
'items' => 'xss',
'rows' => 'xss',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment