diff --git a/include/functions.php b/include/functions.php
index 4c1c9d9..5c3e724 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -10,7 +10,7 @@ function getMMDVMHostVersion() {
} else {
showLapTime("getMMDVMHostVersion");
if (strlen($output[0]) > 26) {
- return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")";
+ return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")";
} else {
return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ")";
}
@@ -32,6 +32,7 @@ function getFirmwareVersion() {
$firmware = "n/a";
if (count($logLines) >= 2) {
$firmware = substr($logLines[count($logLines)-2], strpos($logLines[count($logLines)-2], "description")+13, strlen($logLines[count($logLines)-2])-strpos($logLines[count($logLines)-2], "description")+13);
+ $firmware = preg_replace('/GitID #([0-9A-Fa-f]{7})/', 'GitID #$1', $firmware);
}
if ($firmware != "n/a") {
$fp = fopen('/tmp/MMDVMFirmware.txt', 'w');