From: rubenwardy Date: Mon, 9 Dec 2019 21:05:07 +0000 (+0000) Subject: Fix spaces breaking formspec_version[] tag X-Git-Tag: 5.2.0~257 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e63d22d6472b61477f804dc5b00705650f90409;p=oweals%2Fminetest.git Fix spaces breaking formspec_version[] tag --- diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 728747eb8..ab20840f9 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2262,7 +2262,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data) return false; } - if (parts[0] != "formspec_version") { + if (trim(parts[0]) != "formspec_version") { return false; }