Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > a1d8443a713911ce904911c3f12bd540 > files > 2

ocsinventory-1.3.3-1.1.mga1.src.rpm

diff -up ocsreports/preferences.php.orig ocsreports/preferences.php
--- ocsreports/preferences.php.orig	2010-11-23 09:35:19.000000000 +0100
+++ ocsreports/preferences.php	2011-10-22 09:43:24.000000000 +0200
@@ -748,6 +748,7 @@ function ShowResults($req,$sortable=true
 			}*/			
 
 			foreach($tabChamps as $chmp) {// Affichage de toutes les valeurs r�sultats
+				$item[$chmp] = strip_tags($item[$chmp]);
                 echo "<td align='center'>";
                 $isLink = FALSE;
 				if($chmp==TAG_LBL)
@@ -1594,7 +1595,7 @@ function textDecode( $txt ) {
 	for( $i=0; $i<UTF8_DEGREE; $i++ ) {
 		$txt = utf8_decode( $txt );
 	}
-	return $txt;
+	return strip_tags($txt);
 }