Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all

Is there any problem in allowing '&' to the user to insert into database.
Means:I am not restricting the end user to use '&' in the textbox and store in database.
Will i block the '&' also like '<','>' (html tag).

1.Reason for not allow '&' for the end user.
2.If i use it than what should i do so that it will not harm my website.


Please suggest.

Thanks.
Posted
Updated 12-Apr-12 23:44pm
v2

1 solution

Hi @bhagirathimfs

if you have security issue
please go through the SRE engine provided by Antixss module and Antixss library
SRE with Antixss Module[^]

Most of the time "&" or special cheractors are problematic in silverlight visifire chart control.

Hope it will help you

Thanks
 
Share this answer
 
Comments
bhagirathimfs 13-Apr-12 7:31am    
Can you please explain why the '&' is dangerous/problematic ??
deepakaitr12345 13-Apr-12 7:49am    
This char is repeting multiple times on diffrent strings
As well as this is problemetic in turms of your encripted code identification,
if you look at the char like "@" encripted in "&..." form in html.encode mathod.
Please check the HTML Senetiser for this

Hope this will help you
Thanks
bhagirathimfs 13-Apr-12 8:40am    
Thanks

Can u please suggest some website to learn more about this.Actually i want to learn more about time.

Thanks for help.
deepakaitr12345 13-Apr-12 8:49am    
here you wil see more http://computerconsultants.net/post/Preventing-Cross-Site-Scripting-Attacks-with-AntiXss-31.aspx ----------------http://msdn.microsoft.com/en-us/security/Video/ee658075-------------- http://blogs.msdn.com/b/sdl/archive/2009/09/23/new-and-improved-antixss-3-1-now-with-sanitization.aspx Thanks
bhagirathimfs 25-Jun-12 6:00am    
Thanks a ton

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900