mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-14 10:14:55 +02:00
Better guild validations, Fix #457
This commit is contained in:
@@ -457,7 +457,7 @@ function get_guild_rank_data($gid) {
|
||||
// Creates a guild, where cid is the owner of the guild, and name is the name of guild.
|
||||
function create_guild($cid, $name) {
|
||||
$cid = (int)$cid;
|
||||
$name = sanitize($name);
|
||||
$name = trim(preg_replace('/\s\s+/', ' ', str_replace("\n", " ", sanitize($name))));
|
||||
$time = time();
|
||||
|
||||
// Create the guild
|
||||
|
Reference in New Issue
Block a user