From d138bb4ef7c5eda3a6434708716a788850681ec2 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Thu, 16 Nov 2017 21:58:32 +0100 Subject: [PATCH] fix: village renaming doesn't work --- GameEngine/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Profile.php b/GameEngine/Profile.php index 145a6a25..617b52f0 100755 --- a/GameEngine/Profile.php +++ b/GameEngine/Profile.php @@ -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']);