aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/util/MessageUtils.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-16 11:49:26 +0300
committerGravatar Vitaly Takmazov2018-05-16 11:49:26 +0300
commitf962d24898b1b8921229ee32c9cba8aa20438b00 (patch)
tree9a500163dcef83f0ecef57ff2ffbb7288c441ed5 /juick-common/src/main/java/com/juick/util/MessageUtils.java
parentb78a263318a45fa5428906136f6d25ea06363bda (diff)
common: strip hash parameter completely
Diffstat (limited to 'juick-common/src/main/java/com/juick/util/MessageUtils.java')
-rw-r--r--juick-common/src/main/java/com/juick/util/MessageUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/util/MessageUtils.java b/juick-common/src/main/java/com/juick/util/MessageUtils.java
index 932577cb..5a4b05ca 100644
--- a/juick-common/src/main/java/com/juick/util/MessageUtils.java
+++ b/juick-common/src/main/java/com/juick/util/MessageUtils.java
@@ -281,7 +281,7 @@ public class MessageUtils {
URI uri = URI.create(urlMatcher.group(0));
if (uri.getHost().equals("juick.com")) {
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUri(uri);
- uriComponentsBuilder.replaceQueryParam("hash", StringUtils.EMPTY);
+ uriComponentsBuilder.replaceQueryParam("hash");
input = input.replace(urlMatcher.group(0), uriComponentsBuilder.build().toUriString());
}
}