Skip to content
Snippets Groups Projects
Commit 00549038 authored by Olav Morken's avatar Olav Morken
Browse files

Utilities: Allow whitespace in certData-element in metadata.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1602 44740490-163a-0410-bde0-09ae8108e29a
parent d3532994
No related branches found
No related tags found
No related merge requests found
......@@ -1456,7 +1456,9 @@ class SimpleSAML_Utilities {
if (array_key_exists($prefix . 'certData', $metadata)) {
/* Full certificate data available from metadata. */
$ret['certData'] = $metadata[$prefix . 'certData'];
$certData = $metadata[$prefix . 'certData'];
$certData = str_replace(array("\r", "\n", "\t", ' '), '', $certData);
$ret['certData'] = $certData;
/* Recreate PEM-encoded certificate. */
$ret['PEM'] = "-----BEGIN CERTIFICATE-----\n" .
......
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