filter: add page source to email filter

Since the email filter is called from lots of places, the script might
benefit from knowing the origin. That way it can modify its contents
and/or size depending.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Tá an tiomantas seo le fáil i:
Jason A. Donenfeld
2014-01-13 16:24:40 +01:00
tuismitheoir e942a1622b
tiomantas 786609bd36
D'athraigh 8 comhad le 21 breiseanna agus 15 scriosta

Féach ar an gComhad

@ -406,6 +406,9 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype)
switch (filtertype) {
case EMAIL:
argument_count = 2;
break;
case SOURCE:
case ABOUT:
argument_count = 1;