diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/output/confirmlink.php | 4 | ||||
-rw-r--r-- | views/default/output/url.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php index 9377426ad..c4c0e0bfa 100644 --- a/views/default/output/confirmlink.php +++ b/views/default/output/confirmlink.php @@ -20,7 +20,7 @@ if (!$confirm) { } // always generate missing action tokens -$link = elgg_validate_action_url($vars['href']); +$link = elgg_add_action_tokens_to_url($vars['href']); if (isset($vars['class']) && $vars['class']) { $class = 'class="' . $vars['class'] . '"'; @@ -28,4 +28,4 @@ if (isset($vars['class']) && $vars['class']) { $class = ''; } ?> -<a href="<?php echo $link; ?>" <?php echo $class; ?> onclick="return confirm('<?php echo addslashes($confirm); ?>');"><?php echo htmlentities($vars['text'], ENT_QUOTES, 'UTF-8'); ?></a>
\ No newline at end of file +<a href="<?php echo $link; ?>" <?php echo $class; ?> onclick="return confirm('<?php echo addslashes($confirm); ?>');"><?php echo htmlentities($vars['text'], ENT_QUOTES, 'UTF-8'); ?></a> diff --git a/views/default/output/url.php b/views/default/output/url.php index b77ffbf00..734df2c19 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -21,7 +21,7 @@ $url = trim($vars['href']); if (!empty($url)) { if (array_key_exists('is_action', $vars) && $vars['is_action']) { - $url = elgg_validate_action_url($url); + $url = elgg_add_action_tokens_to_url($url); } if (array_key_exists('target', $vars) && $vars['target']) { |