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:
3
filter.c
3
filter.c
@ -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;
|
||||
|
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir