From b970c288ab6ec1a83dd439f5948ab613f18c6e90 Mon Sep 17 00:00:00 2001 From: Abraham Wolk Date: Tue, 23 Jan 2024 15:19:28 +0100 Subject: [PATCH] CSSTUDIO-2207 Bugfix: Escape '[' and ']' in DisplayInfo.toURI(). --- .../csstudio/display/builder/runtime/app/DisplayInfo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DisplayInfo.java b/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DisplayInfo.java index 105f082051..01d1ec89f5 100644 --- a/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DisplayInfo.java +++ b/app/display/runtime/src/main/java/org/csstudio/display/builder/runtime/app/DisplayInfo.java @@ -226,7 +226,10 @@ else if (path.contains(":")) // In path, keep ':' and '/', but replace spaces // Windows platform tweak replace \ with / - buf.append(path.replace(" ", "%20").replace('\\', '/')); + buf.append(path.replace(" ", "%20") + .replace('\\', '/') + .replace("[", "%5B") + .replace("]", "%5D")); // Add macros as path parameters boolean first = true;