aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/tag.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-05-02 20:40:50 -0400
committercash <cash.costello@gmail.com>2013-05-02 20:40:50 -0400
commit0726860ca04b4f2ed9b010cc5c5692c23c32e2d2 (patch)
tree111cc5fbc92da9d95d431281a46803f880f47d48 /views/default/output/tag.php
parent9864f0eeae607f77651c4ec09a344c8f72b6acdf (diff)
downloadelgg-0726860ca04b4f2ed9b010cc5c5692c23c32e2d2.tar.gz
elgg-0726860ca04b4f2ed9b010cc5c5692c23c32e2d2.tar.bz2
Fixes #5421 fixes some encoding issues where wrong context was used
Diffstat (limited to 'views/default/output/tag.php')
-rw-r--r--views/default/output/tag.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/default/output/tag.php b/views/default/output/tag.php
index 3e1f1c320..6bd9a72a7 100644
--- a/views/default/output/tag.php
+++ b/views/default/output/tag.php
@@ -8,25 +8,25 @@
*
*/
+if (!empty($vars['type'])) {
+ $type = "&type=" . rawurlencode($vars['type']);
+} else {
+ $type = "";
+}
if (!empty($vars['subtype'])) {
- $subtype = "&subtype=" . urlencode($vars['subtype']);
+ $subtype = "&subtype=" . rawurlencode($vars['subtype']);
} else {
$subtype = "";
}
if (!empty($vars['object'])) {
- $object = "&object=" . urlencode($vars['object']);
+ $object = "&object=" . rawurlencode($vars['object']);
} else {
$object = "";
}
if (isset($vars['value'])) {
+ $url = elgg_get_site_url() . 'search?q=' . rawurlencode($vars['value']) . "&search_type=tags{$type}{$subtype}{$object}";
$vars['value'] = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8', false);
- if (!empty($vars['type'])) {
- $type = "&type={$vars['type']}";
- } else {
- $type = "";
- }
- $url = elgg_get_site_url() . 'search?q=' . urlencode($vars['value']) . "&search_type=tags{$type}{$subtype}{$object}";
echo elgg_view('output/url', array(
'href' => $url,
'text' => $vars['value'],