[package] uhttpd: redirect to same location with trailing slash appended if directori...
[openwrt/svn-archive/archive.git] / package / uhttpd / src / uhttpd.c
index a818e1c4507e58ff55f501b7bb28a7462df57e45..491452b6349c7fddddb3d6dca54e80d63f0cfca1 100644 (file)
@@ -566,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);
                                                }
 
@@ -1089,4 +1089,3 @@ int main (int argc, char **argv)
 
        return 0;
 }
-