[packages/nodogsplash] prevent nodogsplash from crashing when token/redir is not set - thanks to Moritz Warning
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32017 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b0f3b0beed
commit
af384bdfa4
@ -0,0 +1,18 @@
|
|||||||
|
--- 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);
|
Loading…
x
Reference in New Issue
Block a user