From 8b153f32f4bf228ae09063649e376d30c16266cf Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Fri, 3 May 2002 20:27:53 +0000 Subject: - filter changes part 1. Part 2 tomorrow. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') 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); } -- cgit v1.2.3