From 71411ffe064e5c775ddb052e4ed3ac554d6ad7f3 Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 29 Jan 2010 16:30:49 +0000 Subject: [PATCH] link bbcode - wrong external detection --- e107_files/bbcode/link.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_files/bbcode/link.bb b/e107_files/bbcode/link.bb index 40eed22b1..bd3173029 100644 --- a/e107_files/bbcode/link.bb +++ b/e107_files/bbcode/link.bb @@ -1,4 +1,4 @@ -// $Id: link.bb,v 1.9 2010-01-24 11:44:50 e107steved Exp $ +// $Id: link.bb,v 1.10 2010-01-29 16:30:49 secretr Exp $ global $pref; /** @@ -6,7 +6,7 @@ global $pref; * * @package e107 * @subpackage bbcode - * @version $Id: link.bb,v 1.9 2010-01-24 11:44:50 e107steved Exp $; + * @version $Id: link.bb,v 1.10 2010-01-29 16:30:49 secretr Exp $; * * @todo try and avoid URLs with a language in [..] */ @@ -63,7 +63,7 @@ global $pref; } else { - $insert = ($pref['links_new_window'] && strpos($link,"{e_")===FALSE && substr($link,0,1) != "#" && strpos($extras,"rel=internal")===FALSE) ? "rel='external' " : ""; + $insert = ($pref['links_new_window'] && strpos($link,"{e_")===FALSE && substr($link,0,1) != "#" && substr($link,0,1) != "/" && strpos($extras,"rel=internal")===FALSE) ? "rel='external' " : ""; } if (strtolower(substr($link,0,11)) == 'javascript:') return ''; return "".$code_text."";