You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is caused before executing the helper function, because while debugging it used the branch in the if statement marked with "// Plaintext".
The other view is /icingaweb2/monitoring/show/services
There I can not see it using the helper function at all, only an escape. If I remove the escape, it works like expected.
Do not escape certain HTML markup for plugin output
Use specialized escape functions for plugin output that allow certain HTML formatting to be allowed.
refs #9036
Revert "Don't use HTMLPurifier in list views to improve performance"
Performance gain turned out to be insignificant. This reverts commit 17bb725f84d41396f43619da3e77829c0b4f0d94.
refs #9036
Updated by elippmann on 2015-07-03 14:47:19 +00:00
Subject changed from Plugin output html tags are always escaped to Plugin output HTML tags are always escaped
Target Version set to 2.0.0
Hi,
Thanks for the report. We'll fix this asap.
In my opinion we should always escape plugin output w/o bothering HTML in the list views because of performance. In the detail views however, displaying HTML should be fine.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9036
Created by smadmin on 2015-04-09 12:30:28 +00:00
Assignee: mjentsch
Status: Resolved (closed on 2015-07-07 08:35:05 +00:00)
Target Version: 2.0.0
Last Update: 2015-07-07 08:35:05 +00:00 (in Redmine)
We have several custom plugins generating html output like:
One view causing problems is /icingaweb2/monitoring/service/show
In modules/monitoring/application/views/helpers/PluginOutput.php the code snippet
indicates that this html tags should be allowed.
The page shows that the tags are escaped:
The other view is /icingaweb2/monitoring/show/services
There I can not see it using the helper function at all, only an escape. If I remove the escape, it works like expected.
Attachments
Changesets
2015-07-06 12:43:32 +00:00 by mjentsch 9d2f0be
2015-07-06 13:36:43 +00:00 by mjentsch 7bda4ce
2015-07-06 15:14:36 +00:00 by mjentsch 17bb725
2015-07-07 08:17:04 +00:00 by mjentsch 4f884b1
2015-07-07 08:24:54 +00:00 by mjentsch 604ef87
2015-07-08 13:16:32 +00:00 by mjentsch 39df25f
Relations:
The text was updated successfully, but these errors were encountered: