Add files via upload
This commit is contained in:
parent
ad33293652
commit
82e7fef521
2 changed files with 3 additions and 3 deletions
4
c/cr.c
4
c/cr.c
|
@ -590,8 +590,8 @@ int main(int argc, char **argv)
|
|||
printf("\nURL is too long");
|
||||
}
|
||||
|
||||
if(canCrawl(finalURLsize,finalURL)==0){
|
||||
printf("\nfinalURL failed crawl rules.");
|
||||
if(task != 0 && task[0]=='2' && canCrawl(finalURLsize,finalURL)==0){
|
||||
printf("\nEffective URL failed crawl rules.");
|
||||
skipurl=1;
|
||||
}
|
||||
|
||||
|
|
|
@ -569,7 +569,7 @@ int canCrawl(int urlSize, char *urltocheck){
|
|||
}
|
||||
|
||||
//restrict file extensions to these
|
||||
if(extfound==1 && (locateInURL(urltocheck,".html",".HTML",5,urlSize)==1 || locateInURL(urltocheck,".htm",".HTM",4,urlSize)==1 || locateInURL(urltocheck,".txt",".TXT",4,urlSize)==1 || locateInURL(urltocheck,".php",".PHP",4,urlSize)==1 || locateInURL(urltocheck,".asp",".ASP",4,urlSize)==1 || locateInURL(urltocheck,".xhtml",".XHTML",6,urlSize)==1)){
|
||||
if(extfound==1 && (locateInURL(urltocheck,".html",".HTML",5,urlSize)==1 || locateInURL(urltocheck,".htm",".HTM",4,urlSize)==1 || locateInURL(urltocheck,".txt",".TXT",4,urlSize)==1 || locateInURL(urltocheck,".php",".PHP",4,urlSize)==1 || locateInURL(urltocheck,".asp",".ASP",4,urlSize)==1 || locateInURL(urltocheck,".xhtml",".XHTML",6,urlSize)==1 || locateInURL(urltocheck,".shtml",".SHTML",6,urlSize)==1)){
|
||||
return 1;
|
||||
}
|
||||
if(extfound==0 )
|
||||
|
|
Loading…
Add table
Reference in a new issue