N°2306 - Security hardening

This commit is contained in:
Molkobain
2020-01-07 20:57:38 +01:00
parent fdd79e91f0
commit ebfe9da464

View File

@@ -260,11 +260,16 @@ class ObjectFormHandlerHelper
break;
default:
// Do nothing
// As of N°2306 we don't put the $_SERVER['REQUEST_URI'] anymore as it could lead to XSS.
$sFormEndpoint = null;
break;
}
$oFormRenderer = new BsFormRenderer();
$oFormRenderer->SetEndpoint($sFormEndpoint);
if($sFormEndpoint !== null)
{
$oFormRenderer->SetEndpoint($sFormEndpoint);
}
$oFormManager = new ObjectFormManager();
$oFormManager->SetContainer($this->oContainer)