summaryrefslogtreecommitdiff
path: root/uhttpd.c
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-10 20:52:30 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-10 20:52:30 +0000
commit62ba2d547f4bbc0fbaefcea1c021a33a1092a030 (patch)
treefe663560398281d0c7245ab8f0144eb5dfd0eebe /uhttpd.c
parent68d71fcb1951986a741cf94bec5e7db9f17dbee7 (diff)
downloaduhttpd-62ba2d547f4bbc0fbaefcea1c021a33a1092a030.tar.gz
[package] uhttpd: redirect to same location with trailing slash appended if directories are requested
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@23952 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd.c')
-rw-r--r--uhttpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/uhttpd.c b/uhttpd.c
index a818e1c..491452b 100644
--- a/uhttpd.c
+++ b/uhttpd.c
@@ -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;
}
-