From 30194ac45aa622de3909bf2f6505906eab3f0dc9 Mon Sep 17 00:00:00 2001 From: Simon Justesen Date: Sat, 11 Nov 2023 00:29:23 +0100 Subject: [PATCH] Added the target attribute on links generated with do_bbcode_url --- fp-plugins/bbcode/plugin.bbcode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-plugins/bbcode/plugin.bbcode.php b/fp-plugins/bbcode/plugin.bbcode.php index 54220f8..4b847e3 100644 --- a/fp-plugins/bbcode/plugin.bbcode.php +++ b/fp-plugins/bbcode/plugin.bbcode.php @@ -144,8 +144,9 @@ function do_bbcode_url($action, $attributes, $content, $params, $node_object) { // DMKE: uh? $content = $content; $rel = isset($attributes ['rel']) ? ' rel="' . $attributes ['rel'] . '"' : ''; + $target = isset($attributes['target']) ? ' target="'.$attributes['target'] . '"' : ''; $extern = !$local ? ' class="externlink" title="' . $lang ['plugin'] ['bbcode'] ['go_to'] . ' ' . $the_url . '"' : ''; - return '' . $content . ''; + return '' . $content . ''; } /**