* code for task #7939.

This commit is contained in:
z
2020-09-23 15:05:45 +08:00
parent 103a6d6011
commit 3fa53be319
5 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ class html extends baseHTML
static public function a($href = '', $title = '', $target = "_self", $misc = '', $newline = true)
{
if(empty($target)) $target = '_self';
if($target != '_self') $misc .= " target='$target'";
if($target != '_self') $misc .= " target='$target'";
if($target == '_blank') $misc .= " rel='noopener noreferrer'";
return parent::a($href, $title, $misc, $newline);
}