{"action":"created","issue":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2145","labels_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2145/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2145/comments","events_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2145/events","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2145","id":66155096,"number":2145,"title":"field name input validation","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T14:21:26Z","updated_at":"2015-04-03T14:21:27Z","closed_at":null,"body":"I can input a invalid string to field name, but only the first char is tested.  \nthe code belongs to\nModules\\Orchard.ContentTypes\\Services\\ContentDefinitionService at line 243:  \n// don't allow non A-Z chars as first letter, as they are not allowed in\nprefixes  \nif(name.Length > 0) {  \n\n    \n    \n    if (!IsLetter(name[0])) {\n        name = name.Substring(1);\n    }\n\n}  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 18255](http://orchard.codeplex.com/workitem/18255)\n**Status:**\tResolved\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tNov 29, 2011 at 2:09 AM\n**Reported by:**\tdragon753\n**Updated on:**\tMar 28, 2014 at 12:29 AM\n**Updated by:**\tsfmskywalker\n**Status:**\tResolved\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tNov 29, 2011 at 2:09 AM\n**Reported by:**\tdragon753\n**Updated on:**\tMar 28, 2014 at 12:29 AM\n**Updated by:**\tsfmskywalker\n"},"comment":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/comments/89302373","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2145#issuecomment-89302373","issue_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2145","id":89302373,"user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T14:21:27Z","updated_at":"2015-04-03T14:21:27Z","body":"On *2011-12-03 05:07:02 UTC*, **@sebastienros** commented:\n\nFixed in changeset 01c5713b7fbc\n"}}