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