X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/ce67681a34e5797615e9d07685ad3ec017b6ddad..c0241ce8caf879dd9a61e6839a9dbf8a8e1c6c6b:/package/uhttpd/src/uhttpd.c?ds=sidebyside diff --git a/package/uhttpd/src/uhttpd.c b/package/uhttpd/src/uhttpd.c index 86b7e63dd..491452b63 100644 --- a/package/uhttpd/src/uhttpd.c +++ b/package/uhttpd/src/uhttpd.c @@ -558,9 +558,7 @@ static void uh_mainloop(struct config *conf, fd_set serv_fds, int max_fd) if( conf->lua_state && uh_path_match(conf->lua_prefix, req->url) ) { - /* auth ok? */ - if( uh_auth_check(cl, req, pin) ) - conf->lua_request(cl, req, conf->lua_state); + conf->lua_request(cl, req, conf->lua_state); } else #endif @@ -568,7 +566,7 @@ static void uh_mainloop(struct config *conf, fd_set serv_fds, int max_fd) if( (pin = uh_path_lookup(cl, req->url)) != NULL ) { /* auth ok? */ - if( uh_auth_check(cl, req, pin) ) + if( !pin->redirected && uh_auth_check(cl, req, pin) ) uh_dispatch_request(cl, req, pin); } @@ -1091,4 +1089,3 @@ int main (int argc, char **argv) return 0; } -