[Bf-blender-cvs] [630f343] master: UI: Don't print user passwords in info-space
Campbell Barton
noreply at git.blender.org
Thu Aug 14 08:19:45 CEST 2014
Commit: 630f343b30d8b7deb59a7e0ecd0b8f957a536319
Author: Campbell Barton
Date: Thu Aug 14 16:18:26 2014 +1000
Branches: master
https://developer.blender.org/rB630f343b30d8b7deb59a7e0ecd0b8f957a536319
UI: Don't print user passwords in info-space
===================================================================
M source/blender/editors/interface/interface_handlers.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 7a76f66..b95545a 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -604,7 +604,13 @@ static void ui_apply_autokey(bContext *C, uiBut *but)
/* make a little report about what we've done! */
if (but->rnaprop) {
- char *buf = WM_prop_pystring_assign(C, &but->rnapoin, but->rnaprop, but->rnaindex);
+ char *buf;
+
+ if (RNA_property_subtype(but->rnaprop) == PROP_PASSWORD) {
+ return;
+ }
+
+ buf = WM_prop_pystring_assign(C, &but->rnapoin, but->rnaprop, but->rnaindex);
if (buf) {
BKE_report(CTX_wm_reports(C), RPT_PROPERTY, buf);
MEM_freeN(buf);
More information about the Bf-blender-cvs
mailing list