From e87b4de49e5ddc5c377d34c62aa2fe7b70165297 Mon Sep 17 00:00:00 2001
From: Lasse Birnbaum Jensen <lasse@sdu.dk>
Date: Tue, 17 Jun 2008 09:17:49 +0000
Subject: [PATCH] fixed static cert path to $config->getPathValue('certdir')

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@665 44740490-163a-0410-bde0-09ae8108e29a
---
 www/saml2/idp/metadata.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/saml2/idp/metadata.php b/www/saml2/idp/metadata.php
index fa83eb0f9..550f34951 100644
--- a/www/saml2/idp/metadata.php
+++ b/www/saml2/idp/metadata.php
@@ -25,7 +25,7 @@ try {
 	$idpmeta = isset($_GET['idpentityid']) ? $_GET['idpentityid'] : $metadata->getMetaDataCurrent('saml20-idp-hosted');
 	$idpentityid = isset($_GET['idpentityid']) ? $_GET['idpentityid'] : $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
 	
-	$publiccert = $config->getBaseDir() . '/cert/' . $idpmeta['certificate'];
+	$publiccert = $config->getPathValue('certdir') . $idpmeta['certificate'];
 
 	if (!file_exists($publiccert)) 
 		throw new Exception('Could not find certificate [' . $publiccert . '] to attach to the authentication resposne');
-- 
GitLab