Add "safe" query string support to mapper.
[shibboleth/sp.git] / shibsp / handler / impl / AssertionConsumerService.cpp
index f68ff6d..bef7527 100644 (file)
@@ -288,22 +288,22 @@ ResolutionContext* AssertionConsumerService::resolveAttributes(
     AttributeExtractor* extractor = application.getAttributeExtractor();
     if (extractor) {
         Locker extlocker(extractor);
-        if (entity) {\r
-            pair<bool,const char*> prefix = application.getString("metadataAttributePrefix");\r
-            if (prefix.first) {\r
-                m_log.debug("extracting metadata-derived attributes...");\r
-                try {\r
-                    extractor->extractAttributes(application, issuer, *entity, resolvedAttributes);\r
-                    for (vector<Attribute*>::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) {\r
-                        vector<string>& ids = (*a)->getAliases();\r
-                        for (vector<string>::iterator id = ids.begin(); id != ids.end(); ++id)\r
-                            *id = prefix.second + *id;\r
-                    }\r
-                }\r
-                catch (exception& ex) {\r
-                    m_log.error("caught exception extracting attributes: %s", ex.what());\r
-                }\r
-            }\r
+        if (entity) {
+            pair<bool,const char*> prefix = application.getString("metadataAttributePrefix");
+            if (prefix.first) {
+                m_log.debug("extracting metadata-derived attributes...");
+                try {
+                    extractor->extractAttributes(application, issuer, *entity, resolvedAttributes);
+                    for (vector<Attribute*>::iterator a = resolvedAttributes.begin(); a != resolvedAttributes.end(); ++a) {
+                        vector<string>& ids = (*a)->getAliases();
+                        for (vector<string>::iterator id = ids.begin(); id != ids.end(); ++id)
+                            *id = prefix.second + *id;
+                    }
+                }
+                catch (exception& ex) {
+                    m_log.error("caught exception extracting attributes: %s", ex.what());
+                }
+            }
         }
         m_log.debug("extracting pushed attributes...");
         if (v1nameid) {