diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/RichPreview.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/RichPreview.java b/src/main/java/de/pixart/messenger/utils/RichPreview.java index 7824478d6..e0bff1cf2 100644 --- a/src/main/java/de/pixart/messenger/utils/RichPreview.java +++ b/src/main/java/de/pixart/messenger/utils/RichPreview.java @@ -125,7 +125,7 @@ public class RichPreview { } private String resolveURL(String url, String part) { - if (URLUtil.isValidUrl(part)) { + if (Patterns.AUTOLINK_WEB_URL.matcher(part).matches() && !part.contains(" ")) { return part; } else { URI base_uri = null; |