fix crashes

This commit is contained in:
tom79 2019-05-31 09:01:46 +02:00
parent fc8e1d59bb
commit e7fffaf507
1 changed files with 1 additions and 1 deletions

View File

@ -3154,7 +3154,7 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
int matchEnd = matcherALink.end();
final String url = content.substring(matcherALink.start(1), matcherALink.end(1));
if( matchEnd <= content.length() && matchEnd >= matchStart){
content = content.replaceFirst(url,"abcdefghijklmnopkrstuvw");
content = content.replaceAll(Pattern.quote(url),"abcdefghijklmnopkrstuvw");
}
}
}