mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Fixed Bug #532, report generation problem with special html characters
Special characters are now properly replaced for HTML display For more see bugtracker: http://bugzilla.adiscon.com/show_bug.cgi?id=532
This commit is contained in:
parent
dfbf3cd776
commit
ee186618d6
@ -501,7 +501,8 @@ class Report_eventsummary extends Report {
|
||||
$tmpMyEvent['FirstEvent_Date_Formatted'] = GetFormatedDate( $tmpMyEvent['firstoccurrence_date'] );
|
||||
$tmpMyEvent['LastEvent_Date_Formatted'] = GetFormatedDate( $tmpMyEvent['lastoccurrence_date'] );
|
||||
$tmpMyEvent['syslogseverity_text'] = $content['filter_severity_list'][ $tmpMyEvent['syslogseverity'] ]["DisplayName"];
|
||||
$tmpMyEvent['syslogseverity_bgcolor'] = $this->GetSeverityBGColor($tmpMyEvent['syslogseverity']);
|
||||
$tmpMyEvent['syslogseverity_bgcolor'] = $this->GetSeverityBGColor($tmpMyEvent['syslogseverity']);
|
||||
$tmpMyEvent['htmlmsg'] = htmlspecialchars($tmpMyEvent[SYSLOG_MESSAGE]);
|
||||
}
|
||||
}
|
||||
// ---
|
||||
|
@ -116,7 +116,7 @@
|
||||
<td class="line1" valign="top" align="center"><a href="http://kb.monitorware.com/kbsearch.php?sa=Search&origin=phplogcon&oid=sourceproc&q={sourceproc}" target="_blank">{sourceproc}</a></td>
|
||||
<td class="lineColouredWhite" valign="top" align="center" bgcolor="{syslogseverity_bgcolor}"><b>{syslogseverity_text}</b></td>
|
||||
<td class="line1" valign="top" align="center"><a href="http://kb.monitorware.com/kbsearch.php?sa=Search&origin=phplogcon&oid=id&q={id}" target="_blank">{id}</a></td>
|
||||
<td class="line1" valign="top" align="left">{msg}</td>
|
||||
<td class="line1" valign="top" align="left">{htmlmsg}</td>
|
||||
</tr>
|
||||
|
||||
<!-- END cons_events -->
|
||||
|
@ -92,7 +92,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cellmenu1" align="center" valign="top" nowrap colspan="2" width="200">{ln_report_description}</td>
|
||||
<td class="cellmenu1" align="left" nowrap colspan="4">{msg:wordwrap:32}</td>
|
||||
<td class="cellmenu1" align="left" nowrap colspan="4">{htmlmsg:wordwrap:32}</td>
|
||||
</tr>
|
||||
<!-- END cons_events -->
|
||||
</table>
|
||||
|
@ -435,6 +435,7 @@ class Report_syslogsummary extends Report {
|
||||
$tmpMyEvent['syslogfacility_text'] = $this->GetFacilityDisplayName($tmpMyEvent['syslogfacility']); //$content['filter_facility_list'][ $tmpMyEvent['syslogfacility'] ]["DisplayName"];
|
||||
$tmpMyEvent['syslogseverity_bgcolor'] = $this->GetSeverityBGColor($tmpMyEvent['syslogseverity']);
|
||||
$tmpMyEvent['syslogfacility_bgcolor'] = $this->GetSeverityBGColor($tmpMyEvent['syslogfacility']);
|
||||
$tmpMyEvent['htmlmsg'] = htmlspecialchars($tmpMyEvent[SYSLOG_MESSAGE]);
|
||||
}
|
||||
}
|
||||
// ---
|
||||
|
@ -117,7 +117,7 @@
|
||||
<td class="lineColouredWhite" valign="top" align="center" bgcolor="{syslogseverity_bgcolor}"><b>{syslogseverity_text}</b></td>
|
||||
<td class="lineColouredWhite" valign="top" align="center" bgcolor="{syslogfacility_bgcolor}"><a href="http://kb.monitorware.com/kbsearch.php?sa=Search&origin=phplogcon&oid=syslogfacility&q={syslogfacility_text}" target="_blank">{syslogfacility_text}</a></td>
|
||||
<td class="line1" valign="top" align="center"><a href="http://kb.monitorware.com/kbsearch.php?sa=Search&origin=phplogcon&oid=syslogtag&q={syslogtag}" target="_blank">{syslogtag}</a></td>
|
||||
<td class="line1" valign="top" align="left">{msg}</td>
|
||||
<td class="line1" valign="top" align="left">{htmlmsg}</td>
|
||||
</tr>
|
||||
|
||||
<!-- END cons_msgs -->
|
||||
|
@ -92,7 +92,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cellmenu1" align="center" valign="top" nowrap colspan="2" width="200">{ln_report_description}</td>
|
||||
<td class="cellmenu1" align="left" nowrap colspan="4">{msg:wordwrap:32}</td>
|
||||
<td class="cellmenu1" align="left" nowrap colspan="4">{htmlmsg:wordwrap:32}</td>
|
||||
</tr>
|
||||
<!-- END cons_msgs -->
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user