Skip to content

Commit

Permalink
fix: special char prevents downloading files with Webdav - EXO-65735
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamdi committed Aug 2, 2023
1 parent 4dfa8bf commit 3f216ff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
Expand Down Expand Up @@ -256,8 +257,8 @@ public String decodeValue(String value) {
do {
currentValue = value;
try {
value = URLDecoder.decode(value, "UTF-8");
} catch (UnsupportedEncodingException e) {
value = URLDecoder.decode(value, StandardCharsets.UTF_8);
} catch (IllegalArgumentException e) {
LOG.warn("Unable to decode value: ", e.getMessage());
return value;
}
Expand Down

0 comments on commit 3f216ff

Please sign in to comment.