mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-04-25 17:25:17 +02: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) {
|
||||
System.err.println(e.getMessage());
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
|
||||
System.exit(exitCode);
|
||||
|
||||
@@ -220,7 +220,7 @@ public class LaunchProperties {
|
||||
String key = entry.getKey();
|
||||
String value = entry.getValue();
|
||||
try {
|
||||
text = text.replaceAll("\\$\\{" + key + "\\}", value.replace("\\", "\\\\"));
|
||||
text = text.replace("${" + key + "}", value);
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
String msg =
|
||||
|
||||
Reference in New Issue
Block a user