From 6191c48596138c8cfa6291d178f7a7b12e86285b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Dec 2019 07:11:34 +0300 Subject: [PATCH] trim() contents of version_static.txt --- include/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/version.php b/include/version.php index 72bed3bd4..d1c5e03b5 100644 --- a/include/version.php +++ b/include/version.php @@ -11,7 +11,7 @@ $root_dir = dirname(dirname(__FILE__)); if (file_exists("$root_dir/version_static.txt")) { - $version = file_get_contents("$root_dir/version_static.txt") . " (Unsupported)"; + $version = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)"; } else if (is_dir("$root_dir/.git")) { $rc = 0; $output = [];