Add files via upload

This commit is contained in:
wibyweb 2023-10-05 01:22:18 -04:00 committed by GitHub
parent 7fc10e2d47
commit e1dd834634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,8 +121,10 @@ void htmlparse(){
if(c != 32 && skipchar == 0){//some titles are just a bunch of spaces or garbage, need to check for that
emptytitle = 0;
}
if(titlesize >= (title_len-2))
titlefound=3;
}
if(locateInWindow(window,"</title>","</TITLE>",8)==1){
if(locateInWindow(window,"</title>","</TITLE>",8)==1 && titlefound!=3){
titlefound = 3;
//remove </title> from end of title by inserting null at location of <
titlesize -= 8;
@ -131,7 +133,7 @@ void htmlparse(){
}
}
if(titlefound == 1 && c=='>')//in case of this situation: <title some_nonsense>
titlefound=2;
titlefound = 2;
if(titlefound == 0 && locateInWindow(window,"<title","<TITLE",6)==1){
titlefound = 1;
}