mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 19:50:48 +08:00
GP-6704: Fixed expanding env vars in launch.properties when they
contained regex chars (Closes #9061)
This commit is contained in:
@@ -124,7 +124,7 @@ public class LaunchSupport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
System.err.println(e.getMessage());
|
e.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
|
|
||||||
System.exit(exitCode);
|
System.exit(exitCode);
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ public class LaunchProperties {
|
|||||||
String key = entry.getKey();
|
String key = entry.getKey();
|
||||||
String value = entry.getValue();
|
String value = entry.getValue();
|
||||||
try {
|
try {
|
||||||
text = text.replaceAll("\\$\\{" + key + "\\}", value.replace("\\", "\\\\"));
|
text = text.replace("${" + key + "}", value);
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e) {
|
catch (IllegalArgumentException e) {
|
||||||
String msg =
|
String msg =
|
||||||
|
|||||||
Reference in New Issue
Block a user