mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Merge pull request #97 from cornex1/patch-3
Fixed illegal string filter on name change
This commit is contained in:
commit
c275afa1cc
@ -112,7 +112,7 @@ if (!empty($_POST['change_name'])) {
|
||||
// Change the name!
|
||||
mysql_update("UPDATE `players` SET `name`='$newname' WHERE `id`='".$player['id']."' LIMIT 1;");
|
||||
mysql_delete("DELETE FROM `znote_shop_orders` WHERE `id`='".$order['id']."' LIMIT 1;");
|
||||
} else echo "Illegal name.";
|
||||
}
|
||||
} else echo "Name validation failed, use another name.";
|
||||
} else echo "The character name you wish to change to already exist.";
|
||||
} else echo "Failed to sync your account. :|";
|
||||
|
Loading…
x
Reference in New Issue
Block a user