Skip to content

Commit

Permalink
project webhook url escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 12, 2024
1 parent 71fe68a commit 28ec349
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/Domain/Projects/Templates/showProject.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<div class="col-md-4">
<strong><?= $tpl->__('label.webhook_url'); ?></strong><br />
<form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
<input type="text" name="mattermostWebhookURL" id="mattermostWebhookURL" value="<?php echo $tpl->get('mattermostWebhookURL'); ?>"/>
<input type="text" name="mattermostWebhookURL" id="mattermostWebhookURL" value="<?php echo $tpl->escape($tpl->get('mattermostWebhookURL')); ?>"/>
<br />
<input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="mattermostSave" />
</form>
Expand All @@ -242,7 +242,7 @@
<div class="col-md-4">
<strong><?= $tpl->__('label.webhook_url'); ?></strong><br />
<form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
<input type="text" name="slackWebhookURL" id="slackWebhookURL" value="<?php echo $tpl->get('slackWebhookURL'); ?>"/>
<input type="text" name="slackWebhookURL" id="slackWebhookURL" value="<?php echo $tpl->escape($tpl->get('slackWebhookURL')); ?>"/>
<br />
<input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="slackSave" />
</form>
Expand All @@ -265,16 +265,16 @@
<input type="text" name="zulipURL" id="zulipURL" placeholder="<?= $tpl->__('input.placeholders.zulip_url'); ?>" value="<?php echo $tpl->get('zulipHook')['zulipURL']; ?>"/>
<br />
<strong><?= $tpl->__('label.bot_email'); ?></strong><br />
<input type="text" name="zulipEmail" id="zulipEmail" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipEmail']; ?>"/>
<input type="text" name="zulipEmail" id="zulipEmail" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipEmail']); ?>"/>
<br />
<strong><?= $tpl->__('label.botkey'); ?></strong><br />
<input type="text" name="zulipBotKey" id="zulipBotKey" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipBotKey']; ?>"/>
<input type="text" name="zulipBotKey" id="zulipBotKey" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipBotKey']); ?>"/>
<br />
<strong><?= $tpl->__('label.stream'); ?></strong><br />
<input type="text" name="zulipStream" id="zulipStream" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipStream']; ?>"/>
<input type="text" name="zulipStream" id="zulipStream" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipStream']); ?>"/>
<br />
<strong><?= $tpl->__('label.topic'); ?></strong><br />
<input type="text" name="zulipTopic" id="zulipTopic" placeholder="" value="<?php echo $tpl->get('zulipHook')['zulipTopic']; ?>"/>
<input type="text" name="zulipTopic" id="zulipTopic" placeholder="" value="<?php echo $tpl->escape($tpl->get('zulipHook')['zulipTopic']); ?>"/>
<br />
<input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="zulipSave" />
</form>
Expand All @@ -295,7 +295,7 @@
<strong><?= $tpl->__('label.webhook_url'); ?></strong><br/>
<form action="<?= BASE_URL ?>/projects/showProject/<?php echo $project['id']; ?>#integrations" method="post">
<?php for ($i = 1; $i <= 3; $i++) { ?>
<input type="text" name="discordWebhookURL<?= $i; ?>" id="discordWebhookURL<?= $i; ?>" placeholder="<?= $tpl->__('input.placeholders.discord_url'); ?>" value="<?php echo $tpl->get('discordWebhookURL'.$i); ?>"/><br/>
<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/>
<?php } ?>
<input type="submit" value="<?= $tpl->__('buttons.save'); ?>" name="discordSave"/>
</form>
Expand Down

0 comments on commit 28ec349

Please sign in to comment.