diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-13 09:50:10 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-13 09:50:10 -0800 |
commit | 888abd61a54576ff244533693df77f174f03c2bb (patch) | |
tree | ffeac194ac9f37ee39fe915f55e86eb5fbc7f9ea /projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs | |
parent | 67913850b038642bc11ba4b871368307ca5acc38 (diff) | |
download | DotNetOpenAuth-888abd61a54576ff244533693df77f174f03c2bb.zip DotNetOpenAuth-888abd61a54576ff244533693df77f174f03c2bb.tar.gz DotNetOpenAuth-888abd61a54576ff244533693df77f174f03c2bb.tar.bz2 |
Added HTML encoding anywhere that uncontrolled data is rendered to a web pgae.
Diffstat (limited to 'projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs')
-rw-r--r-- | projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs b/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs index 944494e..044e9c0 100644 --- a/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs +++ b/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs @@ -27,8 +27,8 @@ namespace WebFormsRelyingParty.Members { this.consumerNameLabel.Text = HttpUtility.HtmlEncode(OAuthServiceProvider.PendingAuthorizationConsumer.Name); OAuth10ConsumerWarning.Visible = pendingRequest.IsUnsafeRequest; - serviceProviderDomainNameLabel.Text = this.Request.Url.Host; - this.consumerDomainNameLabel3.Text = this.consumerDomainNameLabel2.Text = this.consumerDomainNameLabel1.Text = OAuthServiceProvider.PendingAuthorizationConsumer.Name; + serviceProviderDomainNameLabel.Text = HttpUtility.HtmlEncode(this.Request.Url.Host); + this.consumerDomainNameLabel3.Text = this.consumerDomainNameLabel2.Text = this.consumerDomainNameLabel1.Text = HttpUtility.HtmlEncode(OAuthServiceProvider.PendingAuthorizationConsumer.Name); } else { Utilities.VerifyCsrfCookie(this.csrfCheck.Value); } @@ -52,7 +52,7 @@ namespace WebFormsRelyingParty.Members { } else { this.verifierMultiView.SetActiveView(this.verificationCodeView); string verifier = ServiceProvider.CreateVerificationCode(consumer.VerificationCodeFormat, consumer.VerificationCodeLength); - this.verificationCodeLabel.Text = verifier; + this.verificationCodeLabel.Text = HttpUtility.HtmlEncode(verifier); requestToken.VerificationCode = verifier; tokenManager.UpdateToken(requestToken); } |