aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 13:33:16 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 13:33:16 +0000
commite658fb3a978e40653d72ef33549177c87cb714ce (patch)
treeea2d6915df13ff06b36960cf39e3e91bbee14b50 /mod
parentd318c0249ea50907b8b3cbac3a6a6293abf2c0d7 (diff)
downloadelgg-e658fb3a978e40653d72ef33549177c87cb714ce.tar.gz
elgg-e658fb3a978e40653d72ef33549177c87cb714ce.tar.bz2
Closes #651: I agree, changed to convert both quotes.
git-svn-id: https://code.elgg.org/elgg/trunk@2979 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/guidtool/views/default/forms/guidtool/export.php2
-rw-r--r--mod/profile/views/default/profile/icon.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/guidtool/views/default/forms/guidtool/export.php b/mod/guidtool/views/default/forms/guidtool/export.php
index fca6fb152..e2a583d6d 100644
--- a/mod/guidtool/views/default/forms/guidtool/export.php
+++ b/mod/guidtool/views/default/forms/guidtool/export.php
@@ -19,5 +19,5 @@
?>
<div id="export">
-<?php echo elgg_view('output/longtext', array('value' => htmlentities(file_get_contents($CONFIG->url . "export/$format/$entity_guid/"), null, 'UTF-8'))) ?>
+<?php echo elgg_view('output/longtext', array('value' => htmlentities(file_get_contents($CONFIG->url . "export/$format/$entity_guid/"), ENT_QUOTES, 'UTF-8'))) ?>
</div> \ No newline at end of file
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php
index d6b82c831..ac278f7c1 100644
--- a/mod/profile/views/default/profile/icon.php
+++ b/mod/profile/views/default/profile/icon.php
@@ -19,7 +19,7 @@
if ($vars['entity'] instanceof ElggUser) {
- $name = htmlentities($vars['entity']->name, null, 'UTF-8');
+ $name = htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8');
$username = $vars['entity']->username;
if ($icontime = $vars['entity']->icontime) {
@@ -77,7 +77,7 @@
}
- ?><img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> title="<?php echo htmlentities($vars['entity']->name, null, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /><?php
+ ?><img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /><?php
if (!$override) {