Commit cb10aa65 authored by Nathan Haug's avatar Nathan Haug
Browse files

Prevent empty URLs from mistakenly returning the site URL. Issue #93585.

parent 6939b336
......@@ -249,6 +249,9 @@ function link_field_formatter_info() {
*
*/
function link_field_formatter($field, $item, $formatter) {
if (empty($item['url'])) {
return '';
}
if ($formatter == 'plain') {
return check_plain($item['url']);
......
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