Skip to content
Snippets Groups Projects
Commit c0308d63 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request #672 from dnmvisser/fix_converter_xml_parse_failure

Fix XML validation failure with leading/trailing whitespace
parents bda8550e bbdc43dd
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,9 @@ SimpleSAML\Utils\Auth::requireAdmin();
$config = SimpleSAML_Configuration::getInstance();
if (!empty($_FILES['xmlfile']['tmp_name'])) {
$xmldata = file_get_contents($_FILES['xmlfile']['tmp_name']);
$xmldata = trim(file_get_contents($_FILES['xmlfile']['tmp_name']));
} elseif (array_key_exists('xmldata', $_POST)) {
$xmldata = $_POST['xmldata'];
$xmldata = trim($_POST['xmldata']);
}
if (!empty($xmldata)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment