From bfeb4f5eef7c5ea03871c3052e4ef6f7d235e9e0 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:36 +0200 Subject: [PATCH] Fix potential access to empty region stats array --- pages/regions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/regions.php b/pages/regions.php index 93800fb..953659a 100644 --- a/pages/regions.php +++ b/pages/regions.php @@ -74,7 +74,7 @@ { $stats = getRegionStatsData($row['uuid']); - $entry = ''.htmlspecialchars($row['regionName']).''.htmlspecialchars($opensim->getUserName($row['owner_uuid'])).''.fillString(($row['locX'] / 256), 4).' / '.fillString(($row['locY'] / 256), 4).'
%%CSRF%%
'; + $entry = ''.htmlspecialchars($row['regionName']).''.htmlspecialchars($opensim->getUserName($row['owner_uuid'])).''.fillString(($row['locX'] / 256), 4).' / '.fillString(($row['locY'] / 256), 4).'
%%CSRF%%
'; $table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table); }