Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > e80b82a8475fed1f3976136555d44e81 > files > 4

ocsinventory-1.3.3-5.fc16.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);
 }