Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 78f0ae8

Browse files
fixes #118 (again) spaces are encoded as plus signs in connection names
1 parent 77f9f0b commit 78f0ae8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/URLTools.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public static String getConnectionName(final URL url) {
4343
final Pattern p = Pattern.compile("(sqldev.nav:)([^/]+)(//)?");
4444
final Matcher m = p.matcher(url.toString());
4545
if (m.find()) {
46-
return replaceHexChars(m.group(2).replace("IdeConnections%2523", "IdeConnections%23"));
46+
return replaceHexChars(m.group(2)
47+
.replace("IdeConnections%2523", "IdeConnections%23")) // remove connection prefix
48+
.replace("+", " "); // spaces are encoded als plus signs, fix that, see #118
4749
} else {
4850
return "";
4951
}

0 commit comments

Comments
 (0)