| 1 |
Description: Prevents using arbitrary programs starting with python* |
| 2 |
Last-Update: 2020-12-26 |
| 3 |
|
| 4 |
--- a/src/klfbackend/klfblockprocess.cpp |
| 5 |
+++ b/src/klfbackend/klfblockprocess.cpp |
| 6 |
@@ -120,7 +120,7 @@ |
| 7 |
KLF_DEBUG_BLOCK(KLF_FUNC_NAME) ; |
| 8 |
klfDbg("ext = " << ext) ; |
| 9 |
if (ext == "py") { |
| 10 |
- return detectInterpreterPath("python"); |
| 11 |
+ return detectInterpreterPath("python3"); |
| 12 |
} else if (ext == "sh") { |
| 13 |
return detectInterpreterPath("bash"); |
| 14 |
} else if (ext == "rb") { |
| 15 |
--- a/src/klfconfig.cpp |
| 16 |
+++ b/src/klfconfig.cpp |
| 17 |
@@ -482,7 +482,7 @@ |
| 18 |
BackendSettings.wantSVG.setDefaultValue(defaultsettings.wantSVG); |
| 19 |
} |
| 20 |
|
| 21 |
- ensure_interp_exe(BackendSettings.userScriptInterpreters, "py", "python"); |
| 22 |
+ ensure_interp_exe(BackendSettings.userScriptInterpreters, "py", "python3"); |
| 23 |
ensure_interp_exe(BackendSettings.userScriptInterpreters, "sh", "bash"); |
| 24 |
} |
| 25 |
|