Add unwanted ext to unwanted url check

This commit is contained in:
Ai Lin Chia
2017-11-10 15:01:50 +01:00
parent df9d840afc
commit 569e6f0ada

@ -148,5 +148,13 @@ bool isUrlUnwanted(const Url &url, const char **reason) {
return true;
}
if (url.hasNonIndexableExtension(TITLEREC_CURRENT_VERSION)) {
if (reason) {
*reason = "blocked ext";
}
return true;
}
return false;
}