diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-02-11 23:33:31 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-02-11 23:38:01 +0100 |
commit | b44d7c0b846670ea27cb6dab321f50ba48e6eb42 (patch) | |
tree | 17026606b8ccece4b8e75d6cef148ba11bb438ed | |
parent | b852daeeaeee57372539b534ce6b1793fad2a0fe (diff) | |
download | qutebrowser-b44d7c0b846670ea27cb6dab321f50ba48e6eb42.tar.gz qutebrowser-b44d7c0b846670ea27cb6dab321f50ba48e6eb42.zip |
Don't show line edit text in its repr().
Previously we showed self.text in the __repr__ of MinimalLineEdit. This however
is a bad idea, because it exposes passwords to the debug log when the currently
focused widget is logged.
-rw-r--r-- | qutebrowser/misc/miscwidgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py index b36fb0959..1b3d67720 100644 --- a/qutebrowser/misc/miscwidgets.py +++ b/qutebrowser/misc/miscwidgets.py @@ -43,7 +43,7 @@ class MinimalLineEditMixin: self.setAttribute(Qt.WA_MacShowFocusRect, False) def __repr__(self): - return utils.get_repr(self, text=self.text()) + return utils.get_repr(self) class CommandLineEdit(QLineEdit): |