From cb99f420bdf8a33bd522cf81df6372d9be3e2ad5 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 2 Aug 2010 22:54:26 +0000 Subject: [PATCH] fix device overlib with odd chars git-svn-id: http://www.observium.org/svn/observer/trunk@1631 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/functions.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 23486106b6..9bf4bf86ce 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -46,9 +46,9 @@ function generate_device_link($device, $text=0, $start=0, $end=0) $contents .= "
"; - if($device['os']) { $contents .= $config['os'][$device['os']]['text']; } - if($device['version']) { $contents .= " ".$device['version']; } - if($device['features']) { $contents .= " (".$device['features'].")"; } + if($device['os']) { $contents .= htmlentities($config['os'][$device['os']]['text']); } + if($device['version']) { $contents .= " ".htmlentities($device['version']); } + if($device['features']) { $contents .= " (".htmlentities($device['features']).")"; } # if($device['hardware']) { $contents .= " - ".$device['hardware']; } $contents .= "
";