protected function process() { $auditors = array( 'XSS' => new Filter\Auditor\Xss($this->splittingChar), 'SQL' => new Filter\Auditor\Sql($this->splittingChar), 'PHP' => new Filter\Auditor\Path($this->splittingChar) ); $this->requestFilter->setAuditors($auditors); $this->serverFilter->setAuditors($auditors); $this->getHttpRequest()->addFilter($this->requestFilter); $this->context->getServer()->addFilter($this->serverFilter); if ($this->isAuditorsTriggered()) { if ($this->isSomethingChanged()) { $this->overrideSuperGlobals(); if ($this->currentUserHaveRightsForSkip()) { $this->showForm(); } } $this->doPostProcessActions(); } }
protected function process() { $auditors = $this->getAuditorInstances(); $this->requestFilter->setAuditors($auditors); $this->serverFilter->setAuditors($auditors); $this->getHttpRequest()->addFilter($this->requestFilter); $this->context->getServer()->addFilter($this->serverFilter); if ($this->isAuditorsTriggered()) { if ($this->isSomethingChanged()) { $this->overrideSuperGlobals(); if ($this->currentUserHaveRightsForSkip()) { $this->showForm(); } } $this->doPostProcessActions(); } }