Browse Source

Fixed a critical XSS vulnerability

main
Inga 🏳‍🌈 11 years ago
parent
commit
2c65eb4bae
  1. 4
      FLocal.Common/BBCodes/helpers/BBCode.cs

4
FLocal.Common/BBCodes/helpers/BBCode.cs

@ -28,7 +28,7 @@ namespace FLocal.Common.BBCodes { @@ -28,7 +28,7 @@ namespace FLocal.Common.BBCodes {
if(result == null || result == "") {
return null;
}
return result;
return this.Safe(result);
}
}
@ -36,7 +36,7 @@ namespace FLocal.Common.BBCodes { @@ -36,7 +36,7 @@ namespace FLocal.Common.BBCodes {
get {
string result = this.Default;
if(result == null) {
result = this.InnerText;
result = this.Safe(this.InnerText);
}
return result;
}

Loading…
Cancel
Save