From 990296b6cd6c1b663589de0788f752c677918739 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Dec 2005 08:28:17 +0000 Subject: [PATCH] fixed smarty encoding errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2309 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/main.php b/html/main.php index 8c9e1bd48..7b0f3f61f 100644 --- a/html/main.php +++ b/html/main.php @@ -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 */ -- 2.30.2