X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Flocalidentitiespage.cpp;h=e926b2f2418e6dd44aaace5ac8a226576ee53587;hp=821339de153032c41ae8f70f2ae7d13c58d4f2c5;hb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;hpb=37a8d59548287dcad78ef00e7b18058721eb9935 diff --git a/src/http/pages/localidentitiespage.cpp b/src/http/pages/localidentitiespage.cpp index 821339d..e926b2f 100644 --- a/src/http/pages/localidentitiespage.cpp +++ b/src/http/pages/localidentitiespage.cpp @@ -94,6 +94,7 @@ const std::string LocalIdentitiesPage::GeneratePage(const std::string &method, c std::string publickey; std::string publishtrustlist; std::string singleuse; + std::string keypart; st.ResultText(0,id); st.ResultText(1,name); @@ -101,9 +102,14 @@ const std::string LocalIdentitiesPage::GeneratePage(const std::string &method, c st.ResultText(3,publishtrustlist); st.ResultText(4,singleuse); + if(publickey.size()>8) + { + keypart=publickey.substr(3,5); + } + content+=""; content+=""; - content+=""+name+""; + content+=""+SanitizeOutput(name+keypart)+"..."; content+=""+CreateTrueFalseDropDown("singleuse["+countstr+"]",singleuse)+""; content+=""+CreateTrueFalseDropDown("publishtrustlist["+countstr+"]",publishtrustlist)+""; if(st.ResultNull(6))