From 95f0327fda8e16e749fe701529e19e854328b6d2 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Sat, 1 Jun 2024 17:06:39 +0200 Subject: [PATCH] fix(web): Missing octet in IP https: //github.com/sbpp/sourcebans-pp/issues/865#issuecomment-1636149612 Co-Authored-By: F1F88 <66011476+f1f88@users.noreply.github.com> --- web/configs/version.json | 2 +- web/includes/system-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/configs/version.json b/web/configs/version.json index 57ea6b4ec..412844f15 100644 --- a/web/configs/version.json +++ b/web/configs/version.json @@ -1,5 +1,5 @@ { "version": "1.8.0", - "git": "1404", + "git": "1407", "dev": true } diff --git a/web/includes/system-functions.php b/web/includes/system-functions.php index c1b6e5840..eaa140eb0 100644 --- a/web/includes/system-functions.php +++ b/web/includes/system-functions.php @@ -378,7 +378,7 @@ function rcon(string $cmd, int $sid) */ function parseRconStatus(string $status) { - $regex = '/#\s*(\d+)(?>\s|\d)*"(.*)"\s*(STEAM_[01]:[01]:\d+|\[U:1:\d+\])(?>\s|:|\d)*[a-zA-Z]*\s*\d*\s*([0-9.]+)/'; + $regex = '/#\s*(\d+)(?>\s|\d)*"(.*)"\s*(STEAM_[01]:[01]:\d+|\[U:1:\d+\])(?>\s|:|\d)*[a-zA-Z]*\s*\d*\s([0-9.]+)/'; $players = []; $result = [];