From e658fb3a978e40653d72ef33549177c87cb714ce Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 27 Feb 2009 13:33:16 +0000 Subject: Closes #651: I agree, changed to convert both quotes. git-svn-id: https://code.elgg.org/elgg/trunk@2979 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/calendar.php | 2 +- views/default/output/confirmlink.php | 2 +- views/default/output/email.php | 2 +- views/default/output/pulldown.php | 2 +- views/default/output/tagcloud.php | 2 +- views/default/output/tags.php | 2 +- views/default/output/text.php | 2 +- views/default/output/url.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'views/default/output') diff --git a/views/default/output/calendar.php b/views/default/output/calendar.php index e31290e6a..d08c05cef 100644 --- a/views/default/output/calendar.php +++ b/views/default/output/calendar.php @@ -18,7 +18,7 @@ if (is_int($vars['value'])) { echo date("F j, Y", $vars['value']); } else { - echo htmlentities($vars['value'], null, 'UTF-8'); + echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); } ?> \ No newline at end of file diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php index 2ef3ad14b..a51e58af9 100644 --- a/views/default/output/confirmlink.php +++ b/views/default/output/confirmlink.php @@ -21,4 +21,4 @@ if (!$confirm) $confirm = elgg_echo('question:areyousure'); ?> - \ No newline at end of file + \ No newline at end of file diff --git a/views/default/output/email.php b/views/default/output/email.php index e6b406507..cad9a9348 100644 --- a/views/default/output/email.php +++ b/views/default/output/email.php @@ -16,6 +16,6 @@ */ if (!empty($vars['value'])) { - echo "". htmlentities($vars['value'], null, 'UTF-8') .""; + echo "". htmlentities($vars['value'], ENT_QUOTES, 'UTF-8') .""; } ?> \ No newline at end of file diff --git a/views/default/output/pulldown.php b/views/default/output/pulldown.php index 8b1173842..1045d19be 100644 --- a/views/default/output/pulldown.php +++ b/views/default/output/pulldown.php @@ -15,5 +15,5 @@ * */ - echo htmlentities($vars['value'], null, 'UTF-8'); //$vars['value']; + echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); //$vars['value']; ?> \ No newline at end of file diff --git a/views/default/output/tagcloud.php b/views/default/output/tagcloud.php index 43f7b80b0..463b25116 100644 --- a/views/default/output/tagcloud.php +++ b/views/default/output/tagcloud.php @@ -43,7 +43,7 @@ if (!empty($cloud)) $cloud .= ", "; $size = round((log($tag->total) / log($max)) * 100) + 30; if ($size < 60) $size = 60; - $cloud .= "tag)." ({$tag->total})\" style=\"text-decoration:none;\">" . htmlentities($tag->tag, null, 'UTF-8') . ""; + $cloud .= "tag)." ({$tag->total})\" style=\"text-decoration:none;\">" . htmlentities($tag->tag, ENT_QUOTES, 'UTF-8') . ""; } echo $cloud; diff --git a/views/default/output/tags.php b/views/default/output/tags.php index d3d9522bc..d437475f6 100644 --- a/views/default/output/tags.php +++ b/views/default/output/tags.php @@ -46,7 +46,7 @@ $type = ""; } if (is_string($tag)) { - $tagstr .= "" . htmlentities($tag, null, 'UTF-8') . ""; + $tagstr .= "" . htmlentities($tag, ENT_QUOTES, 'UTF-8') . ""; } } echo $tagstr; diff --git a/views/default/output/text.php b/views/default/output/text.php index db7a5ea90..f2911f26d 100644 --- a/views/default/output/text.php +++ b/views/default/output/text.php @@ -15,5 +15,5 @@ * */ - echo htmlentities($vars['value'], null, 'UTF-8'); // $vars['value']; + echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); // $vars['value']; ?> \ No newline at end of file diff --git a/views/default/output/url.php b/views/default/output/url.php index af4582fba..07b5622bf 100644 --- a/views/default/output/url.php +++ b/views/default/output/url.php @@ -20,7 +20,7 @@ if ((substr_count($val, "http://") == 0) && (substr_count($val, "https://") == 0)) { $val = "http://" . $val; } - echo "". htmlentities($val, null, 'UTF-8'). ""; + echo "". htmlentities($val, ENT_QUOTES, 'UTF-8'). ""; } ?> \ No newline at end of file -- cgit v1.2.3