Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2022-01-11 12:29:21 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-01-11 12:29:21 +0300
commit8b7403c2f67a8ec3f0411f7ad545fd6e9cd75560 (patch)
tree416db50ee6e4332e203fc7b2fcc4720acc0717c9
parent03376b3df2e2958c3db91ff6d050e3ab6ba57c80 (diff)
Also ignore QML2_IMPORT_PATH.
More secure. part of CURA-8475
-rwxr-xr-xcura_app.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cura_app.py b/cura_app.py
index c96e4ba48e..03399b5614 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -17,6 +17,7 @@ import faulthandler
import os
if sys.platform != "linux": # Turns out the Linux build _does_ use this, but we're not making an Enterprise release for that system anyway.
os.environ["QT_PLUGIN_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
+ os.environ["QML2_IMPORT_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket