mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Special characters like german "umlaute" are now proberly replaced
This means characters like will be replaced with ä for example. This works for the detail page and the index page
This commit is contained in:
parent
89deb11c3a
commit
88888d3dc8
@ -247,8 +247,10 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['uid_current'
|
||||
}
|
||||
else if ( $content['fields'][$mycolkey]['FieldType'] == FILTER_TYPE_STRING )
|
||||
{
|
||||
// kindly copy!
|
||||
$content['fields'][$mycolkey]['fieldvalue'] = $logArray[$mycolkey];
|
||||
if ( $mycolkey == SYSLOG_MESSAGE )
|
||||
$content['fields'][$mycolkey]['fieldvalue'] = GetStringWithHTMLCodes($logArray[$mycolkey]);
|
||||
else // kindly copy!
|
||||
$content['fields'][$mycolkey]['fieldvalue'] = $logArray[$mycolkey];
|
||||
}
|
||||
|
||||
// Increment helpcounter
|
||||
|
@ -519,10 +519,8 @@ function DieWithFriendlyErrorMsg( $szerrmsg )
|
||||
|
||||
function GetStringWithHTMLCodes($myStr)
|
||||
{
|
||||
// First of all replace special characters with valid HTML representations!
|
||||
$searchfor = array( "&", "<", ">" );
|
||||
$replacewith = array( "&", "<", ">" );
|
||||
return str_replace ( $searchfor, $replacewith, $myStr);
|
||||
// Replace all special characters with valid html representations
|
||||
return htmlentities($myStr);
|
||||
}
|
||||
|
||||
function InitTemplateParser()
|
||||
|
Loading…
x
Reference in New Issue
Block a user