|
|
@ -172,7 +172,8 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
|
|
|
// Process title
|
|
|
|
// Process title
|
|
|
|
final Uri uriTitle;
|
|
|
|
final Uri uriTitle;
|
|
|
|
if (title != null && PatternsCompat.WEB_URL.matcher(title).matches()) {
|
|
|
|
if (title != null && PatternsCompat.WEB_URL.matcher(title).matches()) {
|
|
|
|
Uri u = Uri.parse(title.contains("://") ? title : "http://" + title);
|
|
|
|
String t = title.replaceAll("\\s+", "");
|
|
|
|
|
|
|
|
Uri u = Uri.parse(title.contains("://") ? t : "http://" + t);
|
|
|
|
String host = u.getHost(); // Capture1.PNG
|
|
|
|
String host = u.getHost(); // Capture1.PNG
|
|
|
|
uriTitle = (UriHelper.hasParentDomain(context, host) ? u : null);
|
|
|
|
uriTitle = (UriHelper.hasParentDomain(context, host) ? u : null);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|