Active
Project:
Subdomain
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2011 at 02:11 UTC
Updated:
5 May 2014 at 20:02 UTC
Jump to comment: Most recent
function clean($raw) {
// Replace spaces with dashes] & convert to lower case
$raw = strtolower(str_replace(" ", "-", $raw));
return preg_replace("/[^a-z-]/", "", $raw);
}
Change last line to
return preg_replace("/[^a-z0-9-]/","",$raw);
to fix.
Comments
Comment #1
kardave commentedCorrect, numbers should be allowed!
Comment #2
jvieille commentedCritical, as subdomain is unusable in many standard situations
Solves http://drupal.org/node/1589992
Needs to be committed ASAP
Thanks
Comment #3
honza pobořil commented"Reviewed & tested by the community" means there is reviewed and tested patch ready to be commited.
Comment #4
honza pobořil commented