From 142d750b9fb34ab3bab672f5358ea01db469df25 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 15 Apr 2019 18:42:09 +0100 Subject: [PATCH 1/3] TextFormat: clean() now removes private-use area Unicode characters the console can't print these, and these are being abused to cause mass crashes in the wild. --- src/pocketmine/utils/TextFormat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/utils/TextFormat.php b/src/pocketmine/utils/TextFormat.php index 90d1441d8..bea431abd 100644 --- a/src/pocketmine/utils/TextFormat.php +++ b/src/pocketmine/utils/TextFormat.php @@ -87,6 +87,7 @@ abstract class TextFormat{ */ public static function clean(string $string, bool $removeFormat = true) : string{ $string = mb_scrub($string, 'UTF-8'); + $string = preg_replace("/[\x{E000}-\x{F8FF}]/u", "", $string); //remove unicode private-use-area characters (they might break the console) if($removeFormat){ $string = str_replace(TextFormat::ESCAPE, "", preg_replace("/" . TextFormat::ESCAPE . "[0-9a-fk-or]/u", "", $string)); } From b4a8f8391b0fba26ed99bc5de0b3aaedcad4472f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 15 Apr 2019 18:45:16 +0100 Subject: [PATCH 2/3] Release 3.7.2 --- src/pocketmine/PocketMine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index d1168645c..a01e76150 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -38,7 +38,7 @@ namespace pocketmine { const NAME = "PocketMine-MP"; const BASE_VERSION = "3.7.2"; - const IS_DEVELOPMENT_BUILD = true; + const IS_DEVELOPMENT_BUILD = false; const BUILD_NUMBER = 0; const MIN_PHP_VERSION = "7.2.0"; From 9ca7c0c883649348c1642a390d7969b355e7193d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 15 Apr 2019 18:45:53 +0100 Subject: [PATCH 3/3] 3.7.3 is next --- src/pocketmine/PocketMine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index a01e76150..411124cf1 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -37,8 +37,8 @@ namespace pocketmine { use pocketmine\wizard\SetupWizard; const NAME = "PocketMine-MP"; - const BASE_VERSION = "3.7.2"; - const IS_DEVELOPMENT_BUILD = false; + const BASE_VERSION = "3.7.3"; + const IS_DEVELOPMENT_BUILD = true; const BUILD_NUMBER = 0; const MIN_PHP_VERSION = "7.2.0";