summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-03-06 14:01:47 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-03-06 14:01:47 +0100
commit37fb01baec92a3e7898380923712e0c48b21107a (patch)
tree2aa8b436935e0edf0a9df3ceacd49c392910296c /system/helpers
parent4acd41aaa0e70577ab179a3a81d485ac2ab27523 (diff)
Modified img() in the HTML Helper to remove an unneeded space.
Modified anchor() in the URL helper to convert entities in the title attribute.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/html_helper.php2
-rw-r--r--system/helpers/url_helper.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 0c884502f..4684d8ea8 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -199,7 +199,7 @@ if (! function_exists('img'))
$src = array('src' => $src);
}
- $img = '<img ';
+ $img = '<img';
foreach ($src as $k=>$v)
{
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index ad71caa45..bd94b390c 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -119,7 +119,7 @@ if (! function_exists('anchor'))
if ($attributes == '')
{
- $attributes = ' title="'.$title.'"';
+ $attributes = ' title="'.htmlentities($title).'"';
}
else
{