Fixed critical vulnerability in Code BBCode tag

main
Inga 🏳‍🌈 15 years ago
parent b7b90d31df
commit 71bf53b960
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 2
      Common/BBCodes/Code.cs

@ -12,7 +12,7 @@ namespace FLocal.Common.BBCodes {
} }
public override string Format(ITextFormatter formatter) { public override string Format(ITextFormatter formatter) {
return "<pre>" + this.InnerBBCode.Trim() + "</pre><br/>"; return "<pre>" + System.Web.HttpUtility.HtmlEncode(this.InnerBBCode.Trim()) + "</pre><br/>";
} }
} }

Loading…
Cancel
Save