summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/mail_row_html.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_revocation/mail_row_html.phtml')
-rwxr-xr-xviews/mods/mod_revocation/mail_row_html.phtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/mods/mod_revocation/mail_row_html.phtml b/views/mods/mod_revocation/mail_row_html.phtml
index 4628b9d..ae060c1 100755
--- a/views/mods/mod_revocation/mail_row_html.phtml
+++ b/views/mods/mod_revocation/mail_row_html.phtml
@@ -13,13 +13,14 @@
$amount = $this->view['wpsg_mod_revocation']['amount'];
$order_product_id = intval($this->view['wpsg_mod_revocation']['order_product_id']);
- $revo_url = home_url('/').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
+ // Schlüssel der Bestellung (S18): bestätigt den Widerruf; keine Nonce, siehe Revocation::orderToken()
+ $revo_url = home_url('/').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount).'&wpsg_revo_key='.urlencode((string)($this->view['wpsg_mod_revocation']['key'] ?? ''));
?>
<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Widerruf', 'wpsg'); ?>:</td>
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="4">
- <a href="<?php echo $revo_url; ?>"><?php echo __('Vertrag widerrufen', 'wpsg'); ?></a>
+ <a href="<?php echo esc_url($revo_url); ?>"><?php echo __('Vertrag widerrufen', 'wpsg'); ?></a>
</td>
</tr>