From fcb1e2fd933e69ebcbaea7476a465a8d2c9a72f5 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Thu, 14 Jul 2022 08:40:53 +0800 Subject: [PATCH] * Fix bug#25198. --- lib/front/front.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 6913efb848..2d68563605 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -38,6 +38,7 @@ class html extends baseHTML if(empty($target)) $target = '_self'; if($target != '_self') $misc .= " target='$target'"; if($target == '_blank') $misc .= " rel='noopener noreferrer'"; + if(strpos($misc, 'disabled')) $href = '#'; return parent::a($href, $title, $misc, $newline); }