Commit dafb146b authored by Steven Wittens's avatar Steven Wittens

#74070: urlencode to drupal_urlencode()

parent f3265fa4
......@@ -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);
}
}
......
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment