From ba1e9e6c5f064310519ac73c5d901deef1ecd464 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 13 Apr 2015 11:47:25 +0100 Subject: [PATCH 1/2] Filtered out new lines to not break webui --- html/pages/devices.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php index 04dd7e1a3..51881e939 100644 --- a/html/pages/devices.inc.php +++ b/html/pages/devices.inc.php @@ -182,11 +182,12 @@ foreach (dbFetch('SELECT `os` FROM `devices` AS D WHERE 1 GROUP BY `os` ORDER BY foreach (dbFetch('SELECT `version` FROM `devices` AS D WHERE 1 GROUP BY `version` ORDER BY `version`') as $data) { if ($data['version']) { - echo('""+'); + echo('">'.$tmp_version.'"+'); } } ?> From c95488f73f8b6a962a949702836f39db7186c9f5 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 13 Apr 2015 12:11:12 +0100 Subject: [PATCH 2/2] Swapped if check --- html/pages/devices.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php index 51881e939..0ec54d604 100644 --- a/html/pages/devices.inc.php +++ b/html/pages/devices.inc.php @@ -184,7 +184,7 @@ foreach (dbFetch('SELECT `version` FROM `devices` AS D WHERE 1 GROUP BY `version if ($data['version']) { $tmp_version = str_replace(array("\r","\n"), "", $data['version']); echo('""+');