diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-10-21 11:14:55 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-10-21 11:14:55 +0000 |
commit | f31db8d70f08a29bac6b98049c138344d37b75ea (patch) | |
tree | 4bf48f76d5b43124edfc47ac41717eba6ae65ea1 /modules/profile.module | |
parent | 6777fdb193fb9db01243082b4181ef7637c4ac91 (diff) | |
download | brdo-f31db8d70f08a29bac6b98049c138344d37b75ea.tar.gz brdo-f31db8d70f08a29bac6b98049c138344d37b75ea.tar.bz2 |
- #22850: Search query containing / results in 404 on clean URLs.
Diffstat (limited to 'modules/profile.module')
-rw-r--r-- | modules/profile.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile.module b/modules/profile.module index 993d70f56..bd6c7cde8 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -252,9 +252,9 @@ function profile_view_field($user, $field) { case 'textarea': return check_markup($value); case 'selection': - return $browse ? l($value, "profile/$field->name/$value") : check_plain($value); + return $browse ? l($value, 'profile/'. drupal_urlencode($field->name) .'/'. drupal_urlencode($value)) : check_plain($value); case 'checkbox': - return $browse ? l($field->title, "profile/$field->name") : check_plain($field->title); + return $browse ? l($field->title, 'profile/'. drupal_urlencode($field->name)) : check_plain($field->title); case 'url': return '<a href="'. check_url($value) .'">'. check_plain($value) .'</a>'; case 'date': @@ -273,7 +273,7 @@ function profile_view_field($user, $field) { $fields = array(); foreach ($values as $value) { if ($value = trim($value)) { - $fields[] = $browse ? l($value, "profile/". urlencode($field->name) ."/". urlencode($value)) : check_plain($value); + $fields[] = $browse ? l($value, "profile/". drupal_urlencode($field->name) ."/". drupal_urlencode($value)) : check_plain($value); } } return implode(', ', $fields); |