Removing malicious code from the name of a Stylesheet.

This commit is contained in:
elitsa
2018-12-03 09:00:44 +01:00
parent ae36e02f4c
commit 0abe685d7f
3 changed files with 3 additions and 3 deletions

View File

@@ -541,7 +541,7 @@ namespace Umbraco.Core
/// <returns>Returns the string without any html tags.</returns>
public static string StripHtml(this string text)
{
string pattern = "[*{}\\/:<>?|\"-()\\n]";
string pattern = "[*{}\\/:<>?|\"-+()\\n]";
return Regex.Replace(text, pattern, String.Empty);
}