summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-07-18 10:44:45 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-07-18 10:44:45 +0000
commitdafb146b2700b204a02dea60f955d5e1db98ee37 (patch)
treef946b6d4db077c43d027c67015ccfacc917c55b4
parentf3265fa4d0eceb64289e2d9be9453b7188c012af (diff)
downloadbrdo-dafb146b2700b204a02dea60f955d5e1db98ee37.tar.gz
brdo-dafb146b2700b204a02dea60f955d5e1db98ee37.tar.bz2
#74070: urlencode to drupal_urlencode()
-rw-r--r--includes/common.inc4
-rw-r--r--modules/comment/comment.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 87101ff27..ad795d393 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -173,7 +173,7 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') {
$params = array();
foreach ($query as $key => $value) {
- $key = urlencode($key);
+ $key = drupal_urlencode($key);
if ($parent) {
$key = $parent .'['. $key .']';
}
@@ -186,7 +186,7 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') {
$params[] = drupal_query_string_encode($value, $exclude, $key);
}
else {
- $params[] = $key .'='. urlencode($value);
+ $params[] = $key .'='. drupal_urlencode($value);
}
}
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index c89d2f1d9..9ec6fe377 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1647,10 +1647,10 @@ function theme_comment_post_forbidden($nid) {
else {
// we cannot use drupal_get_destination() because these links sometimes appear on /node and taxo listing pages
if (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
- $destination = "destination=". urlencode("comment/reply/$nid#comment_form");
+ $destination = "destination=". drupal_urlencode("comment/reply/$nid#comment_form");
}
else {
- $destination = "destination=". urlencode("node/$nid#comment_form");
+ $destination = "destination=". drupal_urlencode("node/$nid#comment_form");
}
if (variable_get('user_register', 1)) {