summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
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);
}