Skip to content

Commit

Permalink
[ui] add security warning to the python console
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 20, 2018
1 parent 91dc84d commit 2aebeb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/console/console_output.py
Expand Up @@ -169,8 +169,9 @@ def __init__(self, parent=None):

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

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

0 comments on commit 2aebeb0

Please sign in to comment.