|
223 | 223 | <div class="col-md-4">
|
224 | 224 | <strong><?= $tpl->__('label.webhook_url'); ?></strong><br />
|
225 | 225 | <form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
|
226 |
| - <input type="text" name="mattermostWebhookURL" id="mattermostWebhookURL" value="<?php echo $tpl->get('mattermostWebhookURL'); ?>"/> |
| 226 | + <input type="text" name="mattermostWebhookURL" id="mattermostWebhookURL" value="<?php echo $tpl->escape($tpl->get('mattermostWebhookURL')); ?>"/> |
227 | 227 | <br />
|
228 | 228 | <input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="mattermostSave" />
|
229 | 229 | </form>
|
|
242 | 242 | <div class="col-md-4">
|
243 | 243 | <strong><?= $tpl->__('label.webhook_url'); ?></strong><br />
|
244 | 244 | <form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
|
245 |
| - <input type="text" name="slackWebhookURL" id="slackWebhookURL" value="<?php echo $tpl->get('slackWebhookURL'); ?>"/> |
| 245 | + <input type="text" name="slackWebhookURL" id="slackWebhookURL" value="<?php echo $tpl->escape($tpl->get('slackWebhookURL')); ?>"/> |
246 | 246 | <br />
|
247 | 247 | <input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="slackSave" />
|
248 | 248 | </form>
|
|
265 | 265 | <input type="text" name="zulipURL" id="zulipURL" placeholder="<?= $tpl->__('input.placeholders.zulip_url'); ?>" value="<?php echo $tpl->get('zulipHook')['zulipURL']; ?>"/>
|
266 | 266 | <br />
|
267 | 267 | <strong><?= $tpl->__('label.bot_email'); ?></strong><br />
|
268 |
| - <input type="text" name="zulipEmail" id="zulipEmail" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipEmail']; ?>"/> |
| 268 | + <input type="text" name="zulipEmail" id="zulipEmail" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipEmail']); ?>"/> |
269 | 269 | <br />
|
270 | 270 | <strong><?= $tpl->__('label.botkey'); ?></strong><br />
|
271 |
| - <input type="text" name="zulipBotKey" id="zulipBotKey" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipBotKey']; ?>"/> |
| 271 | + <input type="text" name="zulipBotKey" id="zulipBotKey" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipBotKey']); ?>"/> |
272 | 272 | <br />
|
273 | 273 | <strong><?= $tpl->__('label.stream'); ?></strong><br />
|
274 |
| - <input type="text" name="zulipStream" id="zulipStream" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipStream']; ?>"/> |
| 274 | + <input type="text" name="zulipStream" id="zulipStream" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipStream']); ?>"/> |
275 | 275 | <br />
|
276 | 276 | <strong><?= $tpl->__('label.topic'); ?></strong><br />
|
277 |
| - <input type="text" name="zulipTopic" id="zulipTopic" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipTopic']; ?>"/> |
| 277 | + <input type="text" name="zulipTopic" id="zulipTopic" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipTopic']); ?>"/> |
278 | 278 | <br />
|
279 | 279 | <input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="zulipSave" />
|
280 | 280 | </form>
|
|
295 | 295 | <strong><?= $tpl->__('label.webhook_url'); ?></strong><br/>
|
296 | 296 | <form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
|
297 | 297 | <?php for ($i = 1; $i <= 3; $i++) { ?>
|
298 |
| - <input type="text" name="discordWebhookURL<?= $i; ?>" id="discordWebhookURL<?= $i; ?>" placeholder="<?= $tpl->__('input.placeholders.discord_url'); ?>" value="<?php echo $tpl->get('discordWebhookURL'.$i); ?>"/><br/> |
| 298 | + <input type="text" name="discordWebhookURL<?= $i; ?>" id="discordWebhookURL<?= $i; ?>" placeholder="<?= $tpl->__('input.placeholders.discord_url'); ?>" value="<?php echo $tpl->escape($tpl->get('discordWebhookURL'.$i)); ?>"/><br/> |
299 | 299 | <?php } ?>
|
300 | 300 | <input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="discordSave"/>
|
301 | 301 | </form>
|
|
0 commit comments