Skip to content

Firefly III: a personal finances manager

Add trim()

James Cole867a2eacd33f
diff --git a/app/Console/Commands/Correction/FixIbans.php b/app/Console/Commands/Correction/FixIbans.php
index 5da57a16f6..8cc193c6f5 100644
--- a/app/Console/Commands/Correction/FixIbans.php
+++ b/app/Console/Commands/Correction/FixIbans.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
namespace FireflyIII\Console\Commands\Correction;
diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php
index e98575424c..39b87ed9b6 100644
--- a/app/Http/Controllers/DebugController.php
+++ b/app/Http/Controllers/DebugController.php
@@ -148,10 +148,10 @@ class DebugController extends Controller
$buildDate = '(unknown)';
if (file_exists('/var/www/counter-main.txt')) {
- $buildNr = file_get_contents('/var/www/counter-main.txt');
+ $buildNr = trim(file_get_contents('/var/www/counter-main.txt'));
}
if (file_exists('/var/www/build-date-main.txt')) {
- $buildDate = file_get_contents('/var/www/build-date-main.txt');
+ $buildDate = trim(file_get_contents('/var/www/build-date-main.txt'));
}
// expected + found DB version: