Skip to content
Snippets Groups Projects
Commit bbdc43dd authored by Dick Visser's avatar Dick Visser
Browse files

Fixed XML validation failure with leading/trailing whitespace.

parent bda8550e
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.
Finish editing this message first!
Please register or to comment