{
//sanity check
$user=trim($user);
- if(ereg("^[A-Za-z0-9_]+$",$user)===false){
+ if(ereg("^[A-Za-z0-9_\\.]+$",$user)===false){
header("X-MagicSmoke-Status: SyntaxError");
die(tr("invalid user name"));
}
{
//sanity check
$user=trim($user);
- if(ereg("^[A-Za-z0-9_]+$",$user)===false){
+ if(ereg("^[A-Za-z0-9_\\.]+$",$user)===false){
header("X-MagicSmoke-Status: SyntaxError");
die(tr("invalid user name"));
}
$root=$dom->createElement("Users");
for($i=0;$i<count($usr);$i++){
//syntax check
- if(ereg("^[A-Za-z0-9_]+$",$usr[$i]["name"])===false)continue;
+ if(ereg("^[A-Za-z0-9_\\.]+$",$usr[$i]["name"])===false)continue;
//existance check
$db->beginTransaction();
$res=$db->select("users","uname","uname='".$usr[$i]["name"]."'");