[Commits] (morgen) Don't show passwords in the repo viewer servlet.

commits at osafoundation.org commits at osafoundation.org
Tue Mar 29 11:21:52 PST 2005


Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py 1.15 1.16

Log message:
Don't show passwords in the repo viewer servlet.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py.diff?r1=text&tr1=1.15&r2=text&tr2=1.16

Index: chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py
diff -u chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py:1.15 chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py:1.16
--- chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py:1.15	Fri Mar 18 09:18:47 2005
+++ chandler/parcels/osaf/framework/webserver/servlets/repo/Repo.py	Tue Mar 29 11:21:50 2005
@@ -781,7 +781,10 @@
                 result += "<a href=%s>%s</a><br>" % (toLink(value.itsPath),
                  value.getItemDisplayName())
             except:
-                result += "%s<br>" % (clean(value))
+                if name == "password":
+                    result += "<i>(hidden)</i><br>"
+                else:
+                    result += "%s<br>" % (clean(value))
 
             result += "</td></tr>\n"
             count += 1



More information about the Commits mailing list