summaryrefslogtreecommitdiffstats
path: root/squark-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'squark-filter.c')
-rw-r--r--squark-filter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/squark-filter.c b/squark-filter.c
index bc88e9a..8fab0bf 100644
--- a/squark-filter.c
+++ b/squark-filter.c
@@ -341,9 +341,11 @@ static void send_redirect(struct sqdb *db, blob_t tag, blob_t url, int categ, bl
blob_push(&b, BLOB_STR(" 302:"));
blob_push(&b, redirect_page);
blob_push(&b, BLOB_STR("?REASON="));
- blob_push(&b, get_category_name(db, categ));
+ blob_push_urlencode(&b, get_category_name(db, categ));
blob_push(&b, BLOB_STR("&USER="));
- blob_push(&b, username);
+ blob_push_urlencode(&b, username);
+ blob_push(&b, BLOB_STR("&DENIEDURL="));
+ blob_push_urlencode(&b, url);
blob_push(&b, lf);
b = blob_pushed(BLOB_BUF(buffer), b);