From 7460c36dc1daab9f4d9cf5dd0a6eea3689c65efd Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 1 Jul 2022 09:30:54 +0200 Subject: [PATCH] * Mobile view: fix broken Security & Password menu --- api/src/Framework.php | 4 ++-- pixelegg/js/fw_mobile.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Framework.php b/api/src/Framework.php index 91e6b9e7d7..ad096ddef7 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -1300,8 +1300,8 @@ abstract class Framework extends Framework\Extra 'id' => 'password', 'name' => 'preferences', 'title' => lang($types[$type]['title']), - 'url' => "javascript:egw.open_link('". - self::link('/index.php?menuaction=preferences.preferences_password.change')."','_blank','850x580')", + 'url' => 'javascript:egw.open_link("'. + self::link('/index.php?menuaction=preferences.preferences_password.change').'","_blank","850x580")', )); } break; diff --git a/pixelegg/js/fw_mobile.js b/pixelegg/js/fw_mobile.js index 13220f901f..1fd4741433 100644 --- a/pixelegg/js/fw_mobile.js +++ b/pixelegg/js/fw_mobile.js @@ -1133,7 +1133,7 @@ if (matches.length > 1 && matches[2] !== undefined) { try { - args = JSON.parse('['+matches[2]+']'); + args = JSON.parse('['+decodeURI(matches[2])+']'); } catch(e) { // deal with '-encloded strings (JSON allows only ") args = JSON.parse('['+matches[2].replace(/','/g, '","').replace(/((^|,)'|'(,|$))/g, '$2"$3')+']');