2009-07-04, 12:30 AM
Unless your going to trim what goes into the db, I don't think that beginning and ending spaces shouldn't be counted from the length of the custom profile field. Could be abused to add a bunch of spaces past the limit.
So I would say remove the trim. I don't like code that modifies what the user didn't put in to the script if it doesn't have to. Other then that, looks good.
So I would say remove the trim. I don't like code that modifies what the user didn't put in to the script if it doesn't have to. Other then that, looks good.