I want to disallow the use of spaces and all symbols except "_".
-
Are you looking for a module that allows that, or how to do that within a custom module?– avpaderno ♦Commented May 7, 2011 at 19:49
-
Most importantly, for what do you want to disallow the use of such characters?– avpaderno ♦Commented May 7, 2011 at 20:08
-
I want to be be able to generate a seo friendly URL with there user name.– J-FizCommented May 8, 2011 at 1:10
Add a comment
|
1 Answer
Based on what you said in your comment, you should just use Pathauto. Pathauto allows you to remove special characters from user/node/taxonomy URLs; if someone's username is 'hey$3#@", you could make their user profile URL http://yourdomain.com/user/hey3.
-
I agree; generating a SEO friendly URL doesn't mean to limit the characters used for the usernames. To notice that in case of conflict, Pathauto will add a character to make the URL unique.– avpaderno ♦Commented May 8, 2011 at 5:58