Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
hopefully fix string index out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Nov 10, 2023
1 parent 4cf734c commit 26391a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ private static String extractPronounsFromField(String localizedPronouns, Account
if(!field.name.toLowerCase().contains(localizedPronouns) &&
!field.name.toLowerCase().contains("pronouns")) return null;
String text=HtmlParser.text(field.value);
if(field.value.toLowerCase().contains("https://")){
if(text.toLowerCase().contains("https://")){
for(String pronounUrl : pronounsUrls){
int index=text.indexOf(pronounUrl);
int beginPronouns=index+pronounUrl.length();
Expand Down

0 comments on commit 26391a6

Please sign in to comment.