summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-05-06 09:44:12 -0700
committerBharat Mediratta <bharat@menalto.com>2012-05-06 09:45:04 -0700
commit3fe3c09ec31b46b1ed57f4d92074dbf3caa4b294 (patch)
tree1fdb1f100c5835e593d801c8d2fdbdcd8a9cc150 /modules/gallery/helpers/gallery_event.php
parent1050bf02233e7a03c0b4e330b84f0d070f5d407d (diff)
Use html::anchor consistently. Fixes #1851.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index db087588..781775b0 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -549,8 +549,8 @@ class gallery_event_Core {
$value = $data->user->$field;
if ($field == "locale") {
$value = locales::display_name($value);
- } elseif ($field == "url") {
- $value = html::mark_clean(html::anchor($data->user->$field));
+ } else if ($field == "url") {
+ $value = html::mark_clean(html::anchor(html::clean($data->user->$field)));
}
$v->user_profile_data[(string) $label] = $value;
}