mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-22 19:17:15 +00:00
Fixed an exploit in the Hero's mansion
With this exploit you can release any conquered oasis
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
Copyright: Travianx Project */
|
Copyright: Travianx Project */
|
||||||
|
|
||||||
$oasisarray = $database->getOasis($village->wid);
|
$oasisarray = $database->getOasis($village->wid);
|
||||||
if(isset($_GET['gid']) && $_GET['gid']==37 && isset($_GET['del'])){
|
if(isset($_GET['gid']) && $_GET['gid']==37 && isset($_GET['del']) && $database->getOasisField($_GET['del'], 'owner') == $session->uid){
|
||||||
if($session->access != BANNED){
|
if($session->access != BANNED){
|
||||||
$database->removeOases($_GET['del']);
|
$database->removeOases($_GET['del']);
|
||||||
header("Location: build.php?id=".$id."&land");
|
header("Location: build.php?id=".$id."&land");
|
||||||
|
|||||||
Reference in New Issue
Block a user