Skip to content

Commit

Permalink
N°4362 - XSS in ajax.render.php?operation=wizard_helper on develop
Browse files Browse the repository at this point in the history
  • Loading branch information
accognet committed Oct 14, 2021
1 parent 20f4419 commit 83125d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/wizardhelper.class.inc.php
Expand Up @@ -350,8 +350,7 @@ public function GetReturnNotEditableFields()
*/
public function GetJsForUpdateFields()
{
$sWizardHelperJsVar = (!is_null($this->m_aData['m_sWizHelperJsVarName'])) ? utils::Sanitize($this->m_aData['m_sWizHelperJsVarName'], utils::ENUM_SANITIZATION_FILTER_PARAMETER) : 'oWizardHelper'.$this->GetFormPrefix();
//str_replace(['(', ')', ';'], '', $this->m_aData['m_sWizHelperJsVarName']) : 'oWizardHelper'.$this->GetFormPrefix();
$sWizardHelperJsVar = (!is_null($this->m_aData['m_sWizHelperJsVarName'])) ? utils::Sanitize($this->m_aData['m_sWizHelperJsVarName'], '', utils::ENUM_SANITIZATION_FILTER_PARAMETER) : 'oWizardHelper'.$this->GetFormPrefix();
$sWizardHelperJson = $this->ToJSON();

return <<<JS
Expand Down

0 comments on commit 83125d9

Please sign in to comment.