mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 05:29:03 +08:00
Refuse to listen to QT_PLUGIN_PATH.
We don't need it ourselves, and it's a potentially serious attack vector. CURA-8475
This commit is contained in:
parent
25ec588754
commit
c849cf8e88
@ -15,6 +15,7 @@ if "" in sys.path:
|
|||||||
import argparse
|
import argparse
|
||||||
import faulthandler
|
import faulthandler
|
||||||
import os
|
import os
|
||||||
|
os.environ["QT_PLUGIN_PATH"] = "" # Security workaround: Don't need it, and introduces an attack vector, so set to nul.
|
||||||
|
|
||||||
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket
|
from PyQt5.QtNetwork import QSslConfiguration, QSslSocket
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user