瀏覽代碼

Add files via upload

wibyweb 1 年之前
父節點
當前提交
e1c0bd9037
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      c/htmlparse.h

+ 1 - 1
c/htmlparse.h

@@ -303,7 +303,7 @@ void htmlparse(){
 			if(urlFound == 0 && urlTagFound == 0 && incomment == 0 && instyle == 0 && inscript == 0 && inlink == 0 && locateInWindow(windowWithSpaces,"<a ","<A ",3)==1){//sometimes there is something between "<a" and "href"
 			if(urlFound == 0 && urlTagFound == 0 && incomment == 0 && instyle == 0 && inscript == 0 && inlink == 0 && locateInWindow(windowWithSpaces,"<a ","<A ",3)==1){//sometimes there is something between "<a" and "href"
 				urlTagFound = 1;
 				urlTagFound = 1;
 			}			
 			}			
-			if(urlFound == 0 && urlTagFound == 1 && incomment == 0 && instyle == 0 && inscript == 0 && inlink == 0 && locateInWindow(window,"href=","HREF=",5)==1){
+			if(urlFound == 0 && incomment == 0 && instyle == 0 && inscript == 0 && inlink == 0 && (locateInWindow(window,"ahref=","AHREF=",6)==1) || (urlTagFound == 1 && locateInWindow(window,"href=","HREF=",5)==1)){
 				urlFound = 1;
 				urlFound = 1;
 			}
 			}
 		}		
 		}