[packages] nodogsplash: fix use of deprecated iptables syntax
[feed/routing.git] / patches / 001-crash_on_missing_rdir_param.patch
1 --- a/src/http.c
2 +++ b/src/http.c
3 @@ -455,10 +455,15 @@ http_nodogsplash_decode_authtarget(reque
4 var = httpdGetVariableByName(r,"tok");
5 if(var && var->value) {
6 token = var->value;
7 + } else {
8 + token = "";
9 }
10 +
11 var = httpdGetVariableByName(r,"redir");
12 if(var && var->value) {
13 redir = var->value;
14 + } else {
15 + redir = "";
16 }
17
18 authtarget = http_nodogsplash_make_authtarget(token,redir);