Using default header encoding in GetStringWithHTMLCodes() function now.

This commit is contained in:
Andre Lorbach 2013-08-16 14:42:29 +02:00
parent 534a15cba9
commit 6fd3834a7b
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Version 3.6.4 (stable), 2013-??-?? Version 3.6.4 (stable), 2013-??-??
- Added MYSQL hint in install script when enabling User Database System. - Added MYSQL hint in install script when enabling User Database System.
- Using default header encoding in GetStringWithHTMLCodes() function now.
This should solve http://bugzilla.adiscon.com/show_bug.cgi?id=433.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Version 3.6.3 (stable), 2013-02-25 Version 3.6.3 (stable), 2013-02-25
- Updated Search documentation - Updated Search documentation

View File

@ -66,7 +66,7 @@ $LANG_EN = "en"; // Used for fallback
$LANG = "en"; // Default language $LANG = "en"; // Default language
// Default Template vars // Default Template vars
$content['BUILDNUMBER'] = "3.6.3"; $content['BUILDNUMBER'] = "3.6.4";
$content['UPDATEURL'] = "http://loganalyzer.adiscon.com/files/version.txt"; $content['UPDATEURL'] = "http://loganalyzer.adiscon.com/files/version.txt";
$content['TITLE'] = "Adiscon LogAnalyzer :: Release " . $content['BUILDNUMBER']; // Default page title $content['TITLE'] = "Adiscon LogAnalyzer :: Release " . $content['BUILDNUMBER']; // Default page title
$content['BASEPATH'] = $gl_root_path; $content['BASEPATH'] = $gl_root_path;
@ -1171,10 +1171,10 @@ function ReplaceLineBreaksInString($myStr)
function GetStringWithHTMLCodes($myStr) function GetStringWithHTMLCodes($myStr)
{ {
global $content;
// Replace all special characters with valid html representations // Replace all special characters with valid html representations
return htmlentities($myStr, ENT_NOQUOTES, "UTF-8"); return htmlentities($myStr, ENT_NOQUOTES, $content['HeaderDefaultEncoding']); //"UTF-8");
//TODO CONFIGURABLE!
} }
function InitTemplateParser() function InitTemplateParser()