mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: village renaming doesn't work
This commit is contained in:
@@ -96,7 +96,7 @@ class Profile {
|
||||
$varray = $database->getProfileVillages($post['uid']);
|
||||
for($i=0;$i<=count($varray)-1;$i++) {
|
||||
$k = trim($post['dname'.$i]);
|
||||
$name = preg_replace("/[^a-zA-Z0-9_-\s]/", "", $k);
|
||||
$name = preg_replace("/[^a-zA-Z0-9_\-\s'\"]/", "", $k);
|
||||
$database->setVillageName($varray[$i]['wref'],$database->RemoveXSS($name));
|
||||
}
|
||||
header("Location: spieler.php?uid=".$post['uid']);
|
||||
|
||||
Reference in New Issue
Block a user