* Mobile view: fix broken Security & Password menu

This commit is contained in:
Hadi Nategh 2022-07-01 09:30:54 +02:00
parent 739e123569
commit 7460c36dc1
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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')+']');