mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#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:
@@ -173,9 +173,7 @@ namespace Orchard.Utility.Extensions {
|
||||
|
||||
name = RemoveDiacritics(name);
|
||||
name = name.Strip(c =>
|
||||
c != '_'
|
||||
&& c != '-'
|
||||
&& !c.IsLetter()
|
||||
!c.IsLetter()
|
||||
&& !Char.IsDigit(c)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user