Commit 83fed7a9 authored by John C. Fiala's avatar John C. Fiala
Browse files

Issue #1309658 by jcfiala: Small nudge to the views tokens fix to handle...

Issue #1309658 by jcfiala: Small nudge to the views tokens fix to handle problem with relative links going through url() twice.
parent 9a596038
......@@ -466,7 +466,8 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$node) {
$url = substr($url, 0, strpos($url, '?'));
}
$item['url'] = url(check_plain($url), $url_parts);
$item['url'] = check_plain($url) . (!empty($url_parts['query']) ? '?' . drupal_http_build_query($url_parts['query']) : '')
. (!empty($url_parts['fragment']) ? '#' . $url_parts['fragment'] : '');
// Create a shortened URL for display.
$display_url = $type == LINK_EMAIL ?
......
Supports Markdown
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