From 4a3fabf2fd7dff84d1af0c6052db752ff8cf2388 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Thu, 19 Sep 2019 12:48:37 -0400 Subject: [PATCH] minor metadata cleanup --- lib/tools/OS.class.php | 4 ++-- view/Response.class.php | 6 +++--- view/template/download/get.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/tools/OS.class.php b/lib/tools/OS.class.php index 6bac91db..12cf8e28 100644 --- a/lib/tools/OS.class.php +++ b/lib/tools/OS.class.php @@ -20,7 +20,7 @@ class OS 'Android', 'icon-android', false, - false, + "Android", " Android" ]; @@ -30,7 +30,7 @@ class OS 'iOS', 'icon-mobile', false, - false, + "iOS", " iOS" ]; diff --git a/view/Response.class.php b/view/Response.class.php index 6b73ec56..479fbbdb 100644 --- a/view/Response.class.php +++ b/view/Response.class.php @@ -71,7 +71,7 @@ class Response public static function getMetaTitle() { - return static::$metaTitle; + return trim(static::$metaTitle); } public static function guessMetaTitle($content) @@ -82,11 +82,11 @@ class Response if ($headerValue == '1' || !$title) { $title = $titleMatches[2][$matchIndex]; if ($headerValue == '1') { - return $title; + return trim($title); } } } - return $title; + return trim($title); } public static function getJsCalls() diff --git a/view/template/download/get.php b/view/template/download/get.php index 1acedadc..f017f542 100644 --- a/view/template/download/get.php +++ b/view/template/download/get.php @@ -6,7 +6,7 @@

- OS::OS_DETAIL($os)[5]]) ?> + OS::OS_DETAIL($os)[4]]) ?>