fix shttpd issue reported by Gimp_

This commit is contained in:
Charles Kerr 2008-08-15 19:45:46 +00:00
parent ca6909db33
commit 7b8b26bcbb
1 changed files with 5 additions and 2 deletions

View File

@ -243,9 +243,9 @@ handle_root( struct shttpd_arg * arg )
"Content-Type: text/html" "\r\n"
"\r\n"
"<html><head>" "\r\n"
" <meta http-equiv=\"Refresh\" content=\"2; url=/transmission/web\">" "\r\n"
" <meta http-equiv=\"Refresh\" content=\"2; url=/transmission/web/\">" "\r\n"
"</head><body>" "\r\n"
" <p>redirecting to <a href=\"/transmission/web\">/transmission/web</a></p>" "\r\n"
" <p>redirecting to <a href=\"/transmission/web\">/transmission/web/</a></p>" "\r\n"
"</body></html>" "\r\n";
const size_t n = strlen( redirect );
memcpy( arg->out.buf, redirect, n );
@ -370,6 +370,9 @@ startServer( tr_rpc_server * server )
argv[argc++] = tr_strdup( "-auth_realm" );
argv[argc++] = tr_strdup( MY_REALM );
argv[argc++] = tr_strdup( "-root" );
argv[argc++] = tr_strdup( "/dev/null" );
if( server->acl )
{
argv[argc++] = tr_strdup( "-acl" );