diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-07-21 10:22:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 10:22:53 +0200 |
commit | 2339b2b8d4a0d7987e11ca45842f11f032ddb69b (patch) | |
tree | b39e62a4c860d1d8506b9d62f7105137adc62cea /app | |
parent | 84a8eaaee0bf110b371043a5f5187d7f601f4b5f (diff) | |
parent | 9d23279f475cacc1da4a9eec183ddb8a68fbd8b6 (diff) | |
download | AntennaPod-2339b2b8d4a0d7987e11ca45842f11f032ddb69b.zip |
Merge pull request #4301 from ByteHamster/double-scheme
Accept more malformed subscribtion URIs
Diffstat (limited to 'app')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java b/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java index 4893d7d82..7f26ff612 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/util/URLCheckerTest.java @@ -57,6 +57,13 @@ public class URLCheckerTest { } @Test + public void testItpcProtocolWithScheme() { + final String in = "itpc://https://example.com"; + final String out = URLChecker.prepareURL(in); + assertEquals("https://example.com", out); + } + + @Test public void testWhiteSpaceUrlShouldNotAppend() { final String in = "\n http://example.com \t"; final String out = URLChecker.prepareURL(in); |