diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-03 20:27:53 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-03 20:27:53 +0000 |
commit | 8b153f32f4bf228ae09063649e376d30c16266cf (patch) | |
tree | b8c863694655f9f551042a6d9c75c1671b0c35c7 /includes/common.inc | |
parent | 72f33dde3236b5a97f8d292abd0b01f3fad056e1 (diff) | |
download | brdo-8b153f32f4bf228ae09063649e376d30c16266cf.tar.gz brdo-8b153f32f4bf228ae09063649e376d30c16266cf.tar.bz2 |
- filter changes part 1. Part 2 tomorrow.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index e0d8b55db..67eaeb80a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -581,7 +581,7 @@ function format_url($address, $description = 0) { } function format_tag($link, $text) { - return l(('$text' ? '$text' : '$link'), array("title" => urlencode('$link'))); + return l(($text ? $text : $link), array("title" => $link)); } function form($form, $method = "post", $action = 0, $options = 0) { @@ -639,7 +639,7 @@ function form_submit($value) { function drupal_url($args = array(), $script = "node") { $t = array(); foreach ($args as $key => $value) { - $t[] = "$key=$value"; + $t[] = "$key=". urlencode($value); } return "$script.php?". implode("&", $t); } |