OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

.Trim() isn't being called when saving FieldName #4377

Open orchardbot opened 10 years ago

orchardbot commented 10 years ago

Elven11 created: https://orchard.codeplex.com/workitem/20548

I had a situation where I have accidentally wrote (due to copy paste):

.WithField("Culture ") and had lost hours of debugging as to why I can't access my field with .Culture.Value.

orchardbot commented 10 years ago

AimOrchard commented:

Wouldn't an exception here be more fitting?

Imho stuff like trimming should only ever occur for user input (ie that they entered through the website, not through 'code')

orchardbot commented 10 years ago

@sebastienros commented:

Exception it is, as voted by the committee.