aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-08 21:46:36 +0300
committerGravatar Vitaly Takmazov2018-05-08 21:46:36 +0300
commitf9f4115b7baeb9a73b63ecda3397994961071373 (patch)
treedebde6ef9a819f11677cbb6966c22ec755232529 /juick-server/src
parent67c5a5eedcd1bf68ade678935392eace59af1c37 (diff)
common: strip login urls from input
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index 70dfd175c..3c12de406 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -797,6 +797,11 @@ public class ServerTests {
result = commandsManager.processCommand(user, String.format("#%d *one *two *three *four *five *six", msg.getMid()), emptyUri);
assertThat(result.getNewMessage(), is(Optional.empty()));
assertThat(result.getText(), is("Tags are NOT updated (5 tags maximum?)"));
+ result = commandsManager.processCommand(user, "I'm very smart to post my login url there: " +
+ "https://juick.com/settings?hash=VTYZkKV8FWkmu6g1", emptyUri);
+ assertThat(result.getNewMessage().isPresent(), is(true));
+ assertThat(result.getNewMessage().get().getText(), is("I'm very smart to post my login url there: " +
+ "https://juick.com/settings?hash="));
}
@Test
public void mailParserTest() throws Exception {