Reverting - unrelated changes.
This commit is contained in:
@@ -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]";
|
||||
const string pattern = @"<(.|\n)*?>";
|
||||
return Regex.Replace(text, pattern, String.Empty);
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace Umbraco.Web.UI
|
||||
|
||||
typeInstance.TypeID = typeId;
|
||||
typeInstance.ParentID = nodeId;
|
||||
typeInstance.Alias = text.CleanForXss();
|
||||
typeInstance.Alias = text;
|
||||
|
||||
// check for returning url
|
||||
ITaskReturnUrl returnUrlTask = typeInstance as LegacyDialogTask;
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace Umbraco.Web.WebServices
|
||||
// sanitize input - stylesheet names have no extension
|
||||
var svce = (FileService)Services.FileService;
|
||||
|
||||
filename = CleanFilename(filename.CleanForXss());
|
||||
filename = CleanFilename(filename);
|
||||
oldName = CleanFilename(oldName);
|
||||
|
||||
if (filename != oldName)
|
||||
|
||||
Reference in New Issue
Block a user