Why do some websites prevent you from using non-alphanumeric characters in your site password? [closed]

Almost certainly to stop people embedding code inside regular fields (a la SQL injection).


Because they did a crappy job of sql injection prevention. I can almost understand not allowing ' and " (your grade goes from F to C) everything else is simply sloppy