Code

fixed smarty encoding errors
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Dec 2005 08:28:17 +0000 (08:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Dec 2005 08:28:17 +0000 (08:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2309 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php

index 8c9e1bd48b5b54eeecbb4ec4ebc5968947c2e296..7b0f3f61f31dba36f80648d5524a80bb11ac68ba 100644 (file)
@@ -319,7 +319,7 @@ $display= $header.$smarty->fetch(get_template_path('framework.tpl'));
 */
 
 if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST']))&&(!empty($display))) {
-  tidy_parse_string($display);
+  tidy_parse_string(utf8_decode($display));
   $err = nl2br(htmlentities(tidy_get_error_buffer()));
   
   if($err){
@@ -331,6 +331,10 @@ if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->d
 }
 
 /* Show page... */
+$f = fopen("/tmp/OgerMonokel.html","w+");
+fwrite($f,$display);
+fclose($f);
+
 echo $display;
 
 /* Save plist */