From 71bf53b960f4ea24ec8bbafe6bc63bd8df8c4bbd Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 5 Jul 2010 00:22:44 +0000 Subject: [PATCH] Fixed critical vulnerability in Code BBCode tag --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- Common/BBCodes/Code.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 6838ebe..ed1c324 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -574 \ No newline at end of file +575 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index 4d85316..e0da8ae 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -308 \ No newline at end of file +309 \ No newline at end of file diff --git a/Common/BBCodes/Code.cs b/Common/BBCodes/Code.cs index 339a825..2923a44 100644 --- a/Common/BBCodes/Code.cs +++ b/Common/BBCodes/Code.cs @@ -12,7 +12,7 @@ namespace FLocal.Common.BBCodes { } public override string Format(ITextFormatter formatter) { - return "
" + this.InnerBBCode.Trim() + "
" + System.Web.HttpUtility.HtmlEncode(this.InnerBBCode.Trim()) + "