Skip to content

Commit b437f78

Browse files
nirvnnyalldawson
authored andcommittedAug 21, 2018
[ui] add security warning to the python console
(cherry-picked from 2aebeb0)
1 parent f198c11 commit b437f78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎python/console/console_output.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ def __init__(self, parent=None):
169169

170170
def insertInitText(self):
171171
txtInit = QCoreApplication.translate("PythonConsole",
172-
"Python Console \n"
173-
"Use iface to access QGIS API interface or Type help(iface) for more info")
172+
"Python Console\n"
173+
"Use iface to access QGIS API interface or Type help(iface) for more info\n"
174+
"Security warning: typing commands from an untrusted source can lead to data loss and/or leak")
174175

175176
# some translation string for the console header ends without '\n'
176177
# and the first command in console will be appended at the header text.

0 commit comments

Comments
 (0)
Please sign in to comment.