From: Andrew Dolgov Date: Wed, 20 Apr 2011 10:32:30 +0000 (+0400) Subject: show partial access key in main instance editor, better key input checking X-Git-Tag: 1.5.3~15^2~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=258d48a04749d57fd3e91524ac9c5da51440e739;p=tt-rss.git show partial access key in main instance editor, better key input checking --- diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 906e89f4..f5a30a06 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -1019,7 +1019,7 @@ print __("Access key:") . " "; print ""; diff --git a/modules/pref-instances.php b/modules/pref-instances.php index ab3d78c4..45df2eb3 100644 --- a/modules/pref-instances.php +++ b/modules/pref-instances.php @@ -70,7 +70,7 @@ print __("Access key:") . " "; print ""; @@ -143,6 +143,7 @@ print "   ".__('Instance URL')." + ".__('Access key')." ".__('Last connected')." "; @@ -163,7 +164,11 @@ $onclick = "onclick='editInstance($id, event)' title='".__('Click to edit')."'"; + $access_key = mb_substr($line['access_key'], 0, 4) . '...' . + mb_substr($line['access_key'], -4); + print "" . htmlspecialchars($line['access_url']) . ""; + print "" . htmlspecialchars($access_key) . ""; print "" . htmlspecialchars($line['last_connected']) . ""; print "";