From 2602d1e26a6522af14357157d2fc0ff0fd6e214d Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 10 Jun 2005 11:18:28 +0000 Subject: [PATCH] helpviewer now parse extern links git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@664 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_helpviewer.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/functions_helpviewer.inc b/include/functions_helpviewer.inc index e37e3ae5a..ee03d28c9 100644 --- a/include/functions_helpviewer.inc +++ b/include/functions_helpviewer.inc @@ -137,8 +137,9 @@ function remove_unwanted_tags($str,$replacements) /*Converts the all links to specified path, is needed to get simple navigation */ function linkwrapper($str,$link) { -// $str = preg_replace("''","href=\"".$link."?pg=",$str); - $str=str_replace("HREF=\"","href=\"".$link."?pg=",$str); + $str = preg_replace("/HREF=\"http/i","target=\"_blank\" href=\"http",$str); + $str = preg_replace("/HREF=\"/","href=\"".$link."?pg=",$str); +// $str=str_replace("HREF=\"","href=\"".$link."?pg=",$str); return($str); } -- 2.30.2