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:
Andre Lorbach 2015-02-19 16:38:02 +01:00
parent dfbf3cd776
commit ee186618d6
6 changed files with 7 additions and 5 deletions

View File

@ -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]);
}
}
// ---

View File

@ -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 -->

View File

@ -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>

View File

@ -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]);
}
}
// ---

View File

@ -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 -->

View File

@ -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>