PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/helpers/src/notification/elements.php +4 -2 1.8.7 → 1.8.16 View file →
@@ -40,8 +40,10 @@
40 40 // notifications from AI
41 41 'ai',
42 42 // notifications from Door Access Control
43 43 'dac',
44 + // notifications from any Webhook event
45 + 'webhook',
44 46 ];
45 47
46 48 /**
47 49 * Default notification type.
@@ -122,9 +124,9 @@
122 124 */
123 125 public function getTitle()
124 126 {
125 127 // access the notification title
126 - $title = (string) $this->get('title', '');
128 + $title = strip_tags((string) $this->get('title', ''));
127 129
128 130 // try to guess the title
129 131 if (!$title) {
130 132 // check for virtual credit card balance
@@ -147,9 +149,9 @@
147 149 */
148 150 public function getSummary()
149 151 {
150 152 // access the notification summary
151 - $summary = (string) $this->get('summary', '');
153 + $summary = strip_tags((string) $this->get('summary', ''));
152 154
153 155 // normalize the summary, if needed
154 156 if ($summary && $this->getChannel() && !strcasecmp($this->getType(), 'lvf')) {
155 157 // listing verification framework (LVF)