Skip to content

Commit

Permalink
GlideUrl fix for urls with IPV6 addresses
Browse files Browse the repository at this point in the history
IPV6 URLs are of the form http://[2607:f8b0:4006:823::200e]/ but the
code was removing the square brackets from the URL, resulting in an
invalid URL and a MalformedURLException.
  • Loading branch information
bennettpeter committed Sep 5, 2024
1 parent a7351b0 commit 905edea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* convenience.
*/
public class GlideUrl implements Key {
private static final String ALLOWED_URI_CHARS = "@#&=*+-_.,:!?()/~'%;$";
private static final String ALLOWED_URI_CHARS = "@#&=*+-_.,:!?()/~'%;$[]";
private final Headers headers;
@Nullable private final URL url;
@Nullable private final String stringUrl;
Expand Down

0 comments on commit 905edea

Please sign in to comment.