New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji domain not recognised as link #11247
Comments
With your URL this variable is
because |
@hiqua I noticed a similar issue with domains containing umlauts (e.g. https://üei.de). Could this be related? |
I would say so. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yes, it is this still relevant. Links with emoji or umlauts (ä, ö, ü) are not recognized as proper links. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
We use the stock android linkifier. I don't anticipate that we'll be making a custom one anytime soon, apologies. |
Ah, I'm sorry, I misspoke. So we do use the default linkifier, but we filter out some results that fail certain rules. Right now, the main rule is that we don't linkify links whose domain has a mix of ascii and non-ascii characters. This is to help prevent homograph attacks. Our rule for that is a little coarse, but honestly given the huge character space we're trying to play it safe here. So summary:
That said, I still think the outcome for this ticket is the same: I don't anticipate we'll do more nuanced stuff here just to be safe. But apologies for the previous incorrect reasoning. |
Bug description
Links that contain emojis are not recognised as proper links.
Steps to reproduce
Actual result:
There is no link preview, the URL is not recognised as a proper link (not clickable)
Expected result: Valid domains should be handled as proper links.
It's a bit edge case bug, and might even count as feature request. However I'd be happy for a fix - which most likely goes here somewhere:
Signal-Android/app/src/main/java/org/thoughtcrime/securesms/linkpreview/LinkPreviewUtil.java
Line 35 in dc6dc19
Screenshots
Device info
Device: OnePlus 6
Android version: 10
Signal version: 5.7.1
Link to debug log
Nothing to log
The text was updated successfully, but these errors were encountered: