From e42f8fa1cd9e62cbcb0f203526d7848a59d818ed Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 22 Mar 2011 13:16:19 +0000 Subject: [PATCH] allow targets for hrefs, as requested with tracker ticket #2894 - no target _blank allowed --- phpgwapi/inc/class.html.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 0bb3d8fb89..3960b8d6ff 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -200,6 +200,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true)); $config->set('AutoFormat.RemoveEmpty', true); @@ -241,6 +243,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true)); $config->set('AutoFormat.RemoveEmpty', true); @@ -1414,6 +1418,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('HTML.Allowed', 'br,p[align],b,i,u,s,em,pre,tt,strong,strike,sub,sup,center,div[align|style],hr[class|style],'. 'ul[type],ol[type|start],li,'.