Code

Return HTML valid content
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 13:33:22 +0000 (13:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 13:33:22 +0000 (13:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18373 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/configViewer/class_commandVerifier.inc

index be20102532d8fa780c7a1871b5a893f0022cfa4d..9de87961358014a677b5921c300012ce6d600458 100644 (file)
@@ -50,8 +50,8 @@ class commandVerifier
             }
             $code = proc_close($process);
 
-            if(!empty($stdout)) $stdout = "<pre>{$stdout}</pre>";
-            if(!empty($stderr)) $stderr = "<pre>{$stderr}</pre>";
+            if(!empty($stdout)) $stdout = "<pre>".htmlentities($stdout,ENT_COMPAT,'UTF-8')."</pre>";
+            if(!empty($stderr)) $stderr = "<pre>".htmlentities($stderr,ENT_COMPAT,'UTF-8')."</pre>";
             $output = "
                 <table summary='"._("Results")."'>
                 <tr><td><b>Result:</b></td><td>$stdout</td></tr>