summaryrefslogtreecommitdiff
path: root/modules/profile.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-12-22 22:58:12 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-12-22 22:58:12 +0000
commitb43fa0f9dad586617b6577f72523e78a0b99ea3d (patch)
treecb3c34b7631d8e795328feb7cda0256cf0c964ac /modules/profile.module
parent3783e6304c0984d32453d02a4690e8e70080c857 (diff)
downloadbrdo-b43fa0f9dad586617b6577f72523e78a0b99ea3d.tar.gz
brdo-b43fa0f9dad586617b6577f72523e78a0b99ea3d.tar.bz2
- #41744: global urlencode() for menu paths
Diffstat (limited to 'modules/profile.module')
-rw-r--r--modules/profile.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile.module b/modules/profile.module
index 4b9401776..ea2279cf5 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -146,7 +146,7 @@ function profile_menu($may_cache) {
function profile_browse() {
$name = arg(1);
- $value = arg(2);
+ list(,,$value) = explode('/', $_GET['q'], 3);
$field = db_fetch_object(db_query("SELECT DISTINCT(fid), type, title, page, visibility FROM {profile_fields} WHERE name = '%s'", $name));
@@ -276,9 +276,9 @@ function profile_view_field($user, $field) {
case 'textarea':
return check_markup($value);
case 'selection':
- return $browse ? l($value, 'profile/'. drupal_urlencode($field->name) .'/'. drupal_urlencode($value)) : check_plain($value);
+ return $browse ? l($value, 'profile/'. $field->name .'/'. $value) : check_plain($value);
case 'checkbox':
- return $browse ? l($field->title, 'profile/'. drupal_urlencode($field->name)) : check_plain($field->title);
+ return $browse ? l($field->title, 'profile/'. $field->name) : check_plain($field->title);
case 'url':
return '<a href="'. check_url($value) .'">'. check_plain($value) .'</a>';
case 'date':