Yesterday I was speaking with a developer, and he mentioned something about restricting the insertions on database field, like, strings such as --
(minus minus).
At the same type, what I know is that is a good approach to escape HTML chars like <
, >
etc. Not --
. Is this true? Do I have to worry about --
, ++
? Is it more like a myth or old stuff?
Update
Thanks a lot for all the answers, it's easy to understand like that since I'm kind of new to all of this. Well, to be more specific in this case our discussion was about and C# ASP.NET MVC website we're developing, so there's a complex open an account form in there with important information, so I'm not sure if MVC using Linq to interface with database already comes with this kind of protection or not. So if anyone could provides some hints about it, it would be great. Thanks again