From 46f9843a0372317a30d0baab231f5c83dc449a86 Mon Sep 17 00:00:00 2001 From: RobbBienert Date: Sun, 6 Oct 2024 01:13:28 +0200 Subject: [PATCH] protecting input type="password" --- admin/login.php | 2 +- scripts/JlogUpdater.php | 2 +- scripts/general.func.php | 4 ++++ scripts/settings.class.php | 8 ++++---- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/admin/login.php b/admin/login.php index 02a5b8c..3336a8e 100644 --- a/admin/login.php +++ b/admin/login.php @@ -62,7 +62,7 @@ $c['main'] = ' ' . $false_password . '

- +

diff --git a/scripts/JlogUpdater.php b/scripts/JlogUpdater.php index 28ee773..54dba9d 100644 --- a/scripts/JlogUpdater.php +++ b/scripts/JlogUpdater.php @@ -43,7 +43,7 @@ class JlogUpdater { $html = '' . '

' . $l['admin']['e_admin_password'] . ': ' - . '' + . '' . '

'; $version = $this->getOldVersion(); while (isset($this->versions[$version])) { diff --git a/scripts/general.func.php b/scripts/general.func.php index c7a684a..e3d9f07 100644 --- a/scripts/general.func.php +++ b/scripts/general.func.php @@ -1,4 +1,8 @@ to prevent password leaks to +// "intelligent" browser services if toggled to text for showing the password. +define('NO_PASSWORD_FORM_LEAKS', 'autocomplete="off" spellcheck="false" writingsuggestions="false"'); + // get weblog link function blog($date, $url, $section = 'weblog') { if($section == 'weblog' OR $section == 'comment') { diff --git a/scripts/settings.class.php b/scripts/settings.class.php index 5684016..67e55ec 100644 --- a/scripts/settings.class.php +++ b/scripts/settings.class.php @@ -331,9 +331,9 @@ class Settings {



-

+


-

+



@@ -373,7 +373,7 @@ class Settings {



-

+


@@ -384,7 +384,7 @@ class Settings { } $form .= " -

+

";