From 0f9ff944c70bc1fc445d7206d8f2374154de9cf3 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 24 Jan 2008 12:34:51 +0000
Subject: [PATCH] SAML2:IdP:Metadata: Check if GET-parameter exists before
 attempting to use it.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@194 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 27f16507a..937d73a65 100644
--- a/www/saml2/idp/metadata.php
+++ b/www/saml2/idp/metadata.php
@@ -70,7 +70,7 @@ try {
 </EntityDescriptor>';
 	
 	
-	if ($_GET['output'] == 'xml') {
+	if (array_key_exists('output', $_GET) && $_GET['output'] == 'xml') {
 		header('Content-Type: application/xml');
 		
 		echo $metaxml;
-- 
GitLab