We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9cc77a commit 2ea8bdaCopy full SHA for 2ea8bda
1 file changed
org.knime.knip.io/src/org/knime/knip/io/nodes/imgreader2/URLUtil.java
@@ -23,13 +23,13 @@ public static URI encode(String in) {
23
} catch (MalformedURLException | URISyntaxException e1) {
24
try {
25
final URI fromString = URIUtil.fromString(in);
26
+ // no scheme specified, we assume 'file://'
27
if (fromString.getScheme() == null) {
28
final String fragment = fromString.getFragment();
29
if (fragment != null) {
30
return new URI("file", fromString.getSchemeSpecificPart() + "#" + fragment, null);
- } else {
31
- return new URI("file", fromString.getSchemeSpecificPart(), fragment);
32
}
+ return new URI("file", fromString.getSchemeSpecificPart(), fragment);
33
} else if (isValidScheme(fromString.getScheme())) {
34
return fromString;
35
} else {
0 commit comments