mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 21:24:32 +04:00
19 lines
422 B
Diff
19 lines
422 B
Diff
--- a/src/http.c
|
|
+++ b/src/http.c
|
|
@@ -455,10 +455,15 @@ http_nodogsplash_decode_authtarget(reque
|
|
var = httpdGetVariableByName(r,"tok");
|
|
if(var && var->value) {
|
|
token = var->value;
|
|
+ } else {
|
|
+ token = "";
|
|
}
|
|
+
|
|
var = httpdGetVariableByName(r,"redir");
|
|
if(var && var->value) {
|
|
redir = var->value;
|
|
+ } else {
|
|
+ redir = "";
|
|
}
|
|
|
|
authtarget = http_nodogsplash_make_authtarget(token,redir);
|