Code

helpviewer now parse extern links
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 11:18:28 +0000 (11:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 11:18:28 +0000 (11:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@664 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_helpviewer.inc

index e37e3ae5a65ed19614a6f5be8bac69b6f19d8eaa..ee03d28c92d42c264d2913576412627506755922 100644 (file)
@@ -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.*>'","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);
 }