aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/confirmation.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-08-28 00:07:23 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-09-09 19:23:04 +0200
commit0dee717c94468afeb139d9e8d9322b5fd26974b6 (patch)
tree3a286343cca070b5c3c4473078cebb909af4b7a2 /core/templates/confirmation.php
parenta20de15b4388e4d57b0fb26eaeca98cd6ba817f8 (diff)
downloadnextcloud-server-0dee717c94468afeb139d9e8d9322b5fd26974b6.tar.gz
nextcloud-server-0dee717c94468afeb139d9e8d9322b5fd26974b6.zip
Confirm mails only per POST
- this is to avoid automatic confirmation by certain softwares that open links Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core/templates/confirmation.php')
-rw-r--r--core/templates/confirmation.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/templates/confirmation.php b/core/templates/confirmation.php
new file mode 100644
index 00000000000..26014cd1e79
--- /dev/null
+++ b/core/templates/confirmation.php
@@ -0,0 +1,20 @@
+<?php
+/** @var array $_ */
+/** @var \OCP\IL10N $l */
+/** @var \OCP\Defaults $theme */
+
+?>
+
+<div class="update">
+ <form method="POST" action="<?php print_unescaped($_['targetUrl']);?>">
+ <h2><?php p($_['title']) ?></h2>
+ <p><?php p($_['message']) ?></p>
+ <div class="buttons">
+ <input type="submit" class="primary" value="<?php p($_['action']); ?>">
+ </div>
+ <?php foreach ($_['parameters'] as $name => $value) {?>
+ <input type="hidden" name="<?php p($name); ?>" value="<?php p($value); ?>">
+ <?php } ?>
+ <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
+ </form>
+</div>