#20086: Don't allow - and _ in technical names

Work Item: 20086

Should not break any feature as technical names can't be modified
This commit is contained in:
Sebastien Ros
2014-03-14 09:39:11 -07:00
parent 5b14195445
commit 7fac54c6a1

View File

@@ -173,9 +173,7 @@ namespace Orchard.Utility.Extensions {
name = RemoveDiacritics(name);
name = name.Strip(c =>
c != '_'
&& c != '-'
&& !c.IsLetter()
!c.IsLetter()
&& !Char.IsDigit(c)
);