summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-05-05 11:31:32 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-05-05 11:31:32 -0700
commitd61f122e85b161c415d1b57e01a45cdc70a6cce5 (patch)
treeb46088c463ba791be1b04265d67809e239637f4c /src
parent25ad502db08fc517e41fe3419b5c8bc79e51a858 (diff)
downloadDotNetOpenAuth-d61f122e85b161c415d1b57e01a45cdc70a6cce5.zip
DotNetOpenAuth-d61f122e85b161c415d1b57e01a45cdc70a6cce5.tar.gz
DotNetOpenAuth-d61f122e85b161c415d1b57e01a45cdc70a6cce5.tar.bz2
Fixed InfoCardSelector.Issuer property so that setting it to the empty string prevents rendering the param tag.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs b/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
index b787300..c85e45d 100644
--- a/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
+++ b/src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs
@@ -587,22 +587,18 @@ namespace DotNetOpenAuth.InfoCard {
cardSpaceControl.Attributes.Add(HtmlTextWriterAttribute.Type.ToString(), "application/x-informationcard");
cardSpaceControl.Attributes.Add(HtmlTextWriterAttribute.Id.ToString(), this.ClientID + "_cs");
- // issuer
- if (this.Issuer != null) {
+ if (!string.IsNullOrEmpty(this.Issuer)) {
cardSpaceControl.Controls.Add(CreateParam("issuer", this.Issuer));
}
- // issuer policy
if (!string.IsNullOrEmpty(this.IssuerPolicy)) {
cardSpaceControl.Controls.Add(CreateParam("issuerPolicy", this.IssuerPolicy));
}
- // token type
if (!string.IsNullOrEmpty(this.TokenType)) {
cardSpaceControl.Controls.Add(CreateParam("tokenType", this.TokenType));
}
- // claims
string requiredClaims, optionalClaims;
this.GetRequestedClaims(out requiredClaims, out optionalClaims);
ErrorUtilities.VerifyArgument(!string.IsNullOrEmpty(requiredClaims) || !string.IsNullOrEmpty(optionalClaims), InfoCardStrings.EmptyClaimListNotAllowed);
@@ -613,12 +609,10 @@ namespace DotNetOpenAuth.InfoCard {
cardSpaceControl.Controls.Add(CreateParam("optionalClaims", optionalClaims));
}
- // privacy URL
if (!string.IsNullOrEmpty(this.PrivacyUrl)) {
cardSpaceControl.Controls.Add(CreateParam("privacyUrl", this.PrivacyUrl));
}
- // privacy version
if (!string.IsNullOrEmpty(this.PrivacyVersion)) {
cardSpaceControl.Controls.Add(CreateParam("privacyVersion", this.PrivacyVersion));
}