Update cr.c

This commit is contained in:
wibyweb 2023-06-14 00:54:23 -04:00 committed by GitHub
parent 31b2a5257e
commit a9db57336b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
c/cr.c
View file

@ -745,9 +745,10 @@ int main(int argc, char **argv)
//check if rules are enforced (only for pages that are autocrawled)
if(force_rules != 0 && force_rules[0]=='1' && task != 0 && task[0]=='2' && noindex == 0){
if(num_scripts > 2 || num_stylesheets > 1)
if(num_scripts > 2 || num_stylesheets > 2){
noindex = 1;
printf("\nFailed rule check");
printf("\nFailed rule check");
}
}
int skip = 0, titlechanged = 0, escape = 0, escapetotal = 0, redirected = 0;