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