summaryrefslogtreecommitdiffstats
path: root/src/squark-filter.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2014-04-10 21:24:18 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-04-25 10:17:20 +0300
commitb7eac294771a72711208d288657a5667d65e8882 (patch)
tree295ecc655384a2a82953be338774d6bc47dedf45 /src/squark-filter.c
parent827c2c3823ba1923d3fb01e191997f6b9edd21a5 (diff)
downloadsquark-b7eac294771a72711208d288657a5667d65e8882.tar.bz2
squark-b7eac294771a72711208d288657a5667d65e8882.tar.xz
squark-filter: correctly identify URLs with uppercase chars in path
squark.db stores all filtered domains/URLs in lowercase. So when querying the filter DB, we need to convert the input URL to lowercase.
Diffstat (limited to 'src/squark-filter.c')
-rw-r--r--src/squark-filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/squark-filter.c b/src/squark-filter.c
index 9eed4a7..50bd798 100644
--- a/src/squark-filter.c
+++ b/src/squark-filter.c
@@ -275,6 +275,7 @@ static int url_classify(struct url_info *url, struct sqdb *db)
/* and then search for path matches -- construct hashing
* string of url decoded path */
+ blob_lowercase(url->path); /* filter DB stores all URLs in lowercase */
blob_push_urldecode(&keybuf, url->path);
keylimits = blob_pushed(BLOB_BUF(buffer), keybuf);